From ce610b2d0a343ea26dd53821d84d8f733353adf8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 16 Jul 2020 09:21:57 +0200 Subject: [PATCH] Variables names --- module/blog/blog.php | 4 ++-- module/blog/view/article/article.php | 4 ++-- module/blog/view/edit/edit.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index be62f31d..922f1b64 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -118,7 +118,7 @@ class blog extends common { 'state' => $this->getInput('blogAddState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('blogAddTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $newuserid, - 'maxlengthcomment' => $this->getInput('blogAddlength', null) + 'commentMaxlength' => $this->getInput('blogAddlength', null) ]]); // Valeurs en sortie $this->addOutput([ @@ -363,7 +363,7 @@ class blog extends common { 'state' => $this->getInput('blogEditState', helper::FILTER_BOOLEAN), 'title' => $this->getInput('blogEditTitle', helper::FILTER_STRING_SHORT, true), 'userId' => $newuserid, - 'maxlengthcomment' => $this->getInput('blogEditLength'), + 'commentMaxlength' => $this->getInput('blogEditCommentMaxlength'), 'commentApprove' => $this->getInput('blogEditCommentApprove') ]]); // Supprime l'ancien article diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 7de493c8..e496fc23 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -65,10 +65,10 @@ 'Commentaire avec maximum '.$this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'maxlengthcomment']).' caractères', + 'label' => 'Commentaire avec maximum '.$this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentMaxlength']).' caractères', 'class' => 'editorWysiwygComment', 'noDirty' => true, - 'maxlength' => $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'maxlengthcomment']) + 'maxlength' => $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentMaxlength']) ]); ?>
getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?> diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index 8cf5a56e..285c4e03 100755 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -84,10 +84,10 @@

Options de publication

- 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', 'label' => 'Caractères par commentaire', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'maxlengthcomment']) + 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentMaxlength']) ]); ?> 'Auteur',