From cda2d93812736e0ef502e6c5bd52fd87881a0796 Mon Sep 17 00:00:00 2001 From: Prof Langues Date: Mon, 28 Sep 2020 16:21:04 +0200 Subject: [PATCH] =?UTF-8?q?approbation=20de=20commentaire=20notification?= =?UTF-8?q?=20invers=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/blog/blog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index d06f43b8..b279e8a8 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -288,8 +288,8 @@ class blog extends common { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/comment/'.$this->getUrl(2), - 'notification' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment', $this->getUrl(3), 'approval']) === true ? 'Commentaire approuvé' : 'Commentaire rejeté', - 'state' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment', $this->getUrl(3), 'approval']) + 'notification' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment', $this->getUrl(3), 'approval']) === true ? 'Commentaire rejeté' : 'Commentaire approuvé', + 'state' => !$this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment', $this->getUrl(3), 'approval']) ]); } }