//blockbestsellers && bankwire now use displayError & displayConfirmation

This commit is contained in:
Vincent Augagneur
2013-09-19 16:55:04 +02:00
parent 150b68b96b
commit 2b2b502ba2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 .= '<div class="alert alert-success"> '.$this->l('Settings updated').'</div>';
$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 .= '<div class="alert alert-danger">'.$err.'</div>';
$this->_html .= $this->displayError($err);
}
else
$this->_html .= '<br />';
@@ -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 .= '<div class="alert alert-success">'.$this->l('Settings updated').'</div>';
$output .= $this->displayConfirmation($this->l('Settings updated'));
}
return $output.$this->renderForm();
}