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