From e4e61d5be7574ae66ea0bb755da198c407f13b95 Mon Sep 17 00:00:00 2001 From: trendschau Date: Thu, 10 Feb 2022 16:20:08 +0100 Subject: [PATCH] Version 1.5.3 increas characters for title and author to 50 --- system/Models/Validation.php | 4 ++-- system/author/settings/system.twig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 %}