diff --git a/sondage/enum.json b/sondage/enum.json index 84d4e02..9e5cbd7 100644 --- a/sondage/enum.json +++ b/sondage/enum.json @@ -1 +1 @@ -{"name":"sondage","realName":"Sondage","version":"1.2","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file +{"name":"sondage","realName":"Sondage","version":"1.3","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file diff --git a/sondage/sondage.php b/sondage/sondage.php index a1f714e..d2af53a 100644 --- a/sondage/sondage.php +++ b/sondage/sondage.php @@ -89,7 +89,7 @@ class sondage extends common 'config', [ 'button' => $this->getInput('formConfigButton'), - 'capcha' => $this->getInput('formConfigCapcha', helper::FILTER_BOOLEAN), + 'captcha' => $this->getInput('formConfigCapcha', helper::FILTER_BOOLEAN), 'group' => $this->getInput('formConfigGroup', helper::FILTER_INT), 'user' => self::$listUsers[$this->getInput('formConfigUser', helper::FILTER_INT)], 'mail' => $this->getInput('formConfigMail'), @@ -163,9 +163,9 @@ class sondage extends common self::$data[] = [ $content, template::button('formDataDelete' . $dataIds[$i], [ - 'class' => 'formDataDelete red', + 'class' => 'formDataDelete buttonRed', 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $dataIds[$i] . '/' . $_SESSION['csrf'], - 'value' => template::ico('cancel') + 'value' => template::ico('trash') ]) ]; } @@ -331,9 +331,9 @@ class sondage extends common { // Soumission du formulaire if ($this->isPost()) { - // Check la capcha + // Check la captcha if ( - $this->getData(['module', $this->getUrl(0), 'config', 'capcha']) + $this->getData(['module', $this->getUrl(0), 'config', 'captcha']) and $this->getInput('formCapcha', helper::FILTER_INT) !== $this->getInput('formCapchaFirstNumber', helper::FILTER_INT) + $this->getInput('formCapchaSecondNumber', helper::FILTER_INT) ) { self::$inputNotices['formCapcha'] = 'Incorrect'; diff --git a/sondage/view/config/config.php b/sondage/view/config/config.php index eeee308..307021b 100644 --- a/sondage/view/config/config.php +++ b/sondage/view/config/config.php @@ -45,18 +45,17 @@