Skip to content

Commit 1289ee5

Browse files
author
Roman Gsponer
committed
Add license reset link
1 parent 2a176ed commit 1289ee5

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ If it is impossible to activate symbolic links, copy the content of `site/plugin
663663

664664
**Solutions:**
665665
- If you haven't got a license yet? Get a [license](https://plain-solutions.net/?product=801346).
666-
- Your server needs a connection to the license server: [https://plain-solutions.net](https://plain-solutions.net)
667-
- Your license key was already validated by another host: Send me [an email](mailto:kirby@plain-solutions.net) **with your license key** to release the assigment.
666+
- Your server needs a connection to the license server: [https://plain-solutions.net](https://plain-solutions.net).
667+
- Your license key was already validated by another host [release the assigment here](https://plain-solutions.net/unlink).
668668
- Delete the license file `/site/config/.formblock_license` (if present) and try again.
669669

670670
---

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "plain/kirby-form-block-suite",
33
"description": "Contactform based on Kirby blocks.",
44
"type": "kirby-plugin",
5-
"version": "5.1.8",
5+
"version": "5.1.9",
66
"license": "GPL-3.0-only",
77
"homepage": "https://plain-solutions.net/801346",
88
"authors": [

utils/Autoloader.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,20 @@ public function _classes(string $root)
129129
{
130130
$classes = [];
131131
$this->_dirWalker($root, function ($path, $file) use (&$classes) {
132-
$prefix = array_map('ucfirst', explode('/', $this->name));
132+
$prefix = array_map([$this, 'toPascalCase'], explode('/', $this->name));
133133
$classname = A::merge($prefix, explode('/', $path));
134134
$classes[implode('\\', $classname)] = $file;
135135
});
136136

137137
F::loadClasses($classes);
138138
}
139139

140+
function toPascalCase(string $string): string
141+
{
142+
$string = str_replace(['-', '_'], ' ', strtolower($string));
143+
$string = ucwords($string);
144+
return str_replace(' ', '', $string);
145+
}
140146

141147
/**
142148
* Autoload translations

0 commit comments

Comments
 (0)