From: vincent@cubedesigners.com Date: Mon, 8 Jun 2015 11:21:45 +0000 (+0000) Subject: Improve temporary redirection X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4e6507d95994fe83f852c4ed0bfba447d9c50293;p=cubedesigners-v7.git Improve temporary redirection --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 9da70f0..420d846 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -134,10 +134,11 @@ class Bootstrap extends CubeIT_Bootstrap { public function handleRedirections($req) { $res = parent::handleRedirections($req); if ($res !== false) { + return $res; } - if ($_SERVER['HTTP_HOST'] == 'www.cubedesigners.com' && !in_array('en', $this->getAppLocales())) { + if ($_SERVER['HTTP_HOST'] == 'www.cubedesigners.com' && !in_array('en', $this->getAppLocalesEnabled())) { $url = 'http://www.cubedesigners.fr' . $_SERVER['REQUEST_URI']; return $url; }