From 4ceec4c37890f4d66f431a9df214a33db3861ca1 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 31 May 2019 12:51:22 +0200 Subject: [PATCH] [9.1.08] maxlength --- core/core.php | 7 +++---- module/blog/view/article/article.php | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/core/core.php b/core/core.php index 5ba28abc..53a05f38 100644 --- a/core/core.php +++ b/core/core.php @@ -2665,7 +2665,7 @@ class template { 'help' => '', 'id' => $nameId, 'label' => '', - //'maxlength' => '500', + 'maxlength' => '500', 'name' => $nameId, 'type' => 2, 'value' => '' @@ -2693,7 +2693,7 @@ class template { $html .= self::hidden($attributes['id'], [ 'class' => 'inputFileHidden', 'disabled' => $attributes['disabled'], - //'maxlength' => $attributes['maxlength'], + 'maxlength' => $attributes['maxlength'], 'value' => $attributes['value'] ]); // Champ d'upload @@ -2718,8 +2718,7 @@ class template { ', $attributes['class'], $attributes['disabled'] ? 'disabled' : '', - helper::sprintAttributes($attributes, ['class', 'extensions', 'type']) - //helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength']) + helper::sprintAttributes($attributes, ['class', 'extensions', 'type', 'maxlength']) ); $html .= self::button($attributes['id'] . 'Delete', [ diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 2d1c09f8..c6f03501 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -59,8 +59,8 @@ 'Commentaire' - //'maxlength' => '500' + 'label' => 'Commentaire', + 'maxlength' => '500' ]); ?> getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?>