//now use displayError() in modules

This commit is contained in:
Vincent Augagneur
2013-10-02 14:39:41 +02:00
parent 1cb7f27a21
commit dec213aecf
6 changed files with 93 additions and 27 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ class BlockViewed extends Module
if (Tools::isSubmit('submitBlockViewed'))
{
if (!($productNbr = Tools::getValue('PRODUCTS_VIEWED_NBR')) || empty($productNbr))
$output .= $this->displayErrors($this->l('You must fill in the \'Products displayed\' field.'));
$output .= $this->displayError($this->l('You must fill in the \'Products displayed\' field.'));
elseif ((int)($productNbr) == 0)
$output .= $this->displayErrors($this->l('Invalid number.'));
$output .= $this->displayError($this->l('Invalid number.'));
else
{
Configuration::updateValue('PRODUCTS_VIEWED_NBR', (int)$productNbr);