[-] MO : #PSFV-636 - Remove warnings lile "Warning: Function displayHeader() is deprecated" with module blockwishlist

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14206 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-03-15 17:23:58 +00:00
parent a17cfc712c
commit 92c3942325
7 changed files with 144 additions and 7 deletions
+4 -2
View File
@@ -35,6 +35,8 @@ include_once(dirname(__FILE__).'/WishList.php');
$context = Context::getContext();
$errors = array();
Tools::displayFileAsDeprecated();
if ($context->customer->isLogged())
{
$add = Tools::getIsset('add');
@@ -97,8 +99,8 @@ $context->smarty->assign(array(
if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/blockwishlist/mywishlist.tpl'))
$context->smarty->display(_PS_THEME_DIR_.'modules/blockwishlist/mywishlist.tpl');
elseif (Tools::file_exists_cache(dirname(__FILE__).'/mywishlist.tpl'))
$context->smarty->display(dirname(__FILE__).'/mywishlist.tpl');
elseif (Tools::file_exists_cache(dirname(__FILE__).'/views/templates/front/mywishlist.tpl'))
$context->smarty->display(dirname(__FILE__).'/views/templates/front/mywishlist.tpl');
else
echo Tools::displayError('No template found');