[*] MO: remove all static call of Module::display() method. Use it as a method on a Module instance.

This commit is contained in:
rMalie
2011-11-28 10:04:41 +00:00
parent 8c9ac59984
commit 8c470eaef0
9 changed files with 20 additions and 34 deletions
+3 -1
View File
@@ -32,6 +32,8 @@ include(dirname(__FILE__).'/../../header.php');
$smarty->assign('iso_code', Tools::strtolower(Context::getContext()->language->iso_code));
echo Module::displayTemplate(dirname(__FILE__).'/paypal', 'about.tpl');
require_once _PS_MODULE_DIR_.'paypal/paypal.php';
$paypal = new PayPal();
echo $paypal->display(dirname(__FILE__).'/paypal', 'about.tpl');
include(dirname(__FILE__).'/../../footer.php');
+1 -1
View File
@@ -1318,7 +1318,7 @@ class PayPal extends PaymentModule
public function display($file, $template, $cacheId = NULL, $compileId = NULL)
{
if (substr(_PS_VERSION_, 0, 3) != '1.3')
return parent::displayTemplate($file, $template);
return parent::display($file, $template);
global $smarty;
$previousTemplate = $smarty->currentTemplate;