From 150b68b96b7c5873bfbc2b633d1dc3cb514f9f3b Mon Sep 17 00:00:00 2001 From: Vincent Augagneur Date: Thu, 19 Sep 2013 16:52:58 +0200 Subject: [PATCH 1/2] //displayError & displayConfirmation use bootstrap design --- classes/module/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/module/Module.php b/classes/module/Module.php index 96ad2d8b7..0fd64e2bb 100644 --- a/classes/module/Module.php +++ b/classes/module/Module.php @@ -1509,7 +1509,7 @@ abstract class ModuleCore public function displayError($error) { $output = ' -
+
'.$error.'
'; $this->error = true; @@ -1519,7 +1519,7 @@ abstract class ModuleCore public function displayConfirmation($string) { $output = ' -
+
'.$string.'
'; return $output; From 2b2b502ba223e45fae15066bd084a0d50aa41209 Mon Sep 17 00:00:00 2001 From: Vincent Augagneur Date: Thu, 19 Sep 2013 16:55:04 +0200 Subject: [PATCH 2/2] //blockbestsellers && bankwire now use displayError & displayConfirmation --- modules/bankwire/bankwire.php | 4 ++-- modules/blockbestsellers/blockbestsellers.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bankwire/bankwire.php b/modules/bankwire/bankwire.php index b0f8b4873..dd7539ac6 100644 --- a/modules/bankwire/bankwire.php +++ b/modules/bankwire/bankwire.php @@ -107,7 +107,7 @@ class BankWire extends PaymentModule Configuration::updateValue('BANK_WIRE_OWNER', Tools::getValue('BANK_WIRE_OWNER')); Configuration::updateValue('BANK_WIRE_ADDRESS', Tools::getValue('BANK_WIRE_ADDRESS')); } - $this->_html .= '
'.$this->l('Settings updated').'
'; + $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } private function _displayBankWire() @@ -124,7 +124,7 @@ class BankWire extends PaymentModule $this->_postProcess(); else foreach ($this->_postErrors as $err) - $this->_html .= '
'.$err.'
'; + $this->_html .= $this->displayError($err); } else $this->_html .= '
'; diff --git a/modules/blockbestsellers/blockbestsellers.php b/modules/blockbestsellers/blockbestsellers.php index d0c4289cc..27547646c 100644 --- a/modules/blockbestsellers/blockbestsellers.php +++ b/modules/blockbestsellers/blockbestsellers.php @@ -108,7 +108,7 @@ class BlockBestSellers extends Module if (Tools::isSubmit('submitBestSellers')) { Configuration::updateValue('PS_BLOCK_BESTSELLERS_DISPLAY', (int)Tools::getValue('PS_BLOCK_BESTSELLERS_DISPLAY')); - $output .= '
'.$this->l('Settings updated').'
'; + $output .= $this->displayConfirmation($this->l('Settings updated')); } return $output.$this->renderForm(); }