From f8d28045dd86e0ad2daaccfc6472a72ef3bf6da6 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 --- 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(); }