From 4e6507d95994fe83f852c4ed0bfba447d9c50293 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 8 Jun 2015 11:21:45 +0000 Subject: [PATCH] Improve temporary redirection --- framework/application/Bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5