diff --git a/system/Models/Validation.php b/system/Models/Validation.php index 2e0524a..bf2ea5c 100644 --- a/system/Models/Validation.php +++ b/system/Models/Validation.php @@ -290,8 +290,8 @@ class Validation $v = new Validator($params); $v->rule('required', ['title', 'author', 'copyright', 'year', 'editor']); - $v->rule('lengthBetween', 'title', 2, 20); - $v->rule('lengthBetween', 'author', 2, 40); + $v->rule('lengthBetween', 'title', 2, 50); + $v->rule('lengthBetween', 'author', 2, 50); $v->rule('noHTML', 'title'); # $v->rule('regex', 'title', '/^[\pL0-9_ \-]*$/u'); $v->rule('regex', 'author', '/^[\pL_ \-]*$/u'); diff --git a/system/author/settings/system.twig b/system/author/settings/system.twig index 92692c2..346caae 100644 --- a/system/author/settings/system.twig +++ b/system/author/settings/system.twig @@ -25,13 +25,13 @@
- + {% if errors.settings.title %} {{ errors.settings.title | first }} {% endif %}
- + {% if errors.settings.author %} {{ errors.settings.author | first }} {% endif %}