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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10695 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-11-28 10:04:41 +00:00
parent 95e1518335
commit 6b61051a16
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;