// Context part 11

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7644 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-18 15:50:58 +00:00
parent 0452f08f64
commit 2c493137c3
60 changed files with 378 additions and 520 deletions
+2 -2
View File
@@ -57,12 +57,12 @@ class BlockLanguages extends Module
*/
function hookTop($params)
{
global $smarty;
$context = Context::getContext();
$languages = Language::getLanguages(true, $this->shopID);
if (!sizeof($languages))
return '';
$smarty->assign('languages', $languages);
$context->controller->smarty->assign('languages', $languages);
return $this->display(__FILE__, 'blocklanguages.tpl');
}