From 718e6a3b555945b72753981711c82a285a184ed1 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 5 Jul 2012 07:22:31 +0000 Subject: [PATCH] [-] BO : fixed #PSCFV-3043 - can't active language in BO git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16221 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Dispatcher.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/Dispatcher.php b/classes/Dispatcher.php index 264cf8d9f..ff1f2a2a6 100644 --- a/classes/Dispatcher.php +++ b/classes/Dispatcher.php @@ -221,8 +221,9 @@ class DispatcherCore $this->setRequestUri(); - // Switch language if needed - Tools::switchLanguage(); + // Switch language if needed (only on front) + if ($this->front_controller == self::FC_FRONT) + Tools::switchLanguage(); $this->loadRoutes(); }