From 6fd84d79b1016dc6f904a4d6c3181b5fbbba1eef Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 5 Dec 2011 17:40:54 +0000 Subject: [PATCH] // BugFix: Context->language is not re-setted in switchLanguage method --- classes/Tools.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/Tools.php b/classes/Tools.php index 5860ef909..c993cbb7c 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -340,6 +340,10 @@ class ToolsCore $context = Context::getContext(); if ($id_lang = (int)(self::getValue('id_lang')) AND Validate::isUnsignedId($id_lang)) $context->cookie->id_lang = $id_lang; + + $language = new Language($id_lang); + if (Validate::isLoadedObject($language)) + $context->language = $language; } /**