// Context part 32

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8095 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-08-17 13:40:05 +00:00
parent 51f2bf2617
commit 39d005f222
14 changed files with 24 additions and 20 deletions
@@ -1199,7 +1199,7 @@ class TSBuyerProtection extends AbsTrustedShops
}
public function hookRightColumn($params)
{
$lang = Language::getIsoById($params['cookie']->id_lang);
$lang = $this->context->language->iso_code;
$lang = strtoupper($lang);
if (array_key_exists($lang, $this->available_languages) AND isset(TSBuyerProtection::$CERTIFICATE[$lang]['tsID']))
{
@@ -1219,7 +1219,7 @@ class TSBuyerProtection extends AbsTrustedShops
*/
public function hookPaymentTop($params)
{
$lang = Language::getIsoById($params['cookie']->id_lang);
$lang = $this->context->language->iso_code;
$lang = strtoupper($lang);
if (!isset(TSBuyerProtection::$CERTIFICATE[$lang]) ||
@@ -464,7 +464,7 @@ class TrustedShopsRating extends AbsTrustedShops
if (!$this->_isTsIdActive((int)($params['cookie']->id_lang)))
return false;
self::$smarty->assign(array('rating_url' => $this->getRatingUrl((int)($params['objOrder']->id)), 'language' => Language::getIsoById((int)($params['cookie']->id_lang))));
self::$smarty->assign(array('rating_url' => $this->getRatingUrl((int)($params['objOrder']->id)), 'language' => $this->context->language->iso_code));
return $this->display(self::$module_name, 'order-confirmation.tpl');
}