From 58dc3508150d6db973ebcd7aebfd011d39d61833 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 22 Oct 2012 16:24:24 +0000 Subject: [PATCH] [-] FO: Fix language switching on modules controllers git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17908 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Dispatcher.php b/classes/Dispatcher.php index 747aa3946..354e7243c 100644 --- a/classes/Dispatcher.php +++ b/classes/Dispatcher.php @@ -224,7 +224,7 @@ class DispatcherCore $this->setRequestUri(); // Switch language if needed (only on front) - if ($this->front_controller == self::FC_FRONT) + if (in_array($this->front_controller, array(self::FC_FRONT, self::FC_MODULE))) Tools::switchLanguage(); if (Language::isMultiLanguageActivated())