]> _ Git - cubedesigners-v7.git/commitdiff
Improve temporary redirection
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 8 Jun 2015 11:21:45 +0000 (11:21 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 8 Jun 2015 11:21:45 +0000 (11:21 +0000)
framework/application/Bootstrap.php

index 9da70f02802a503d501a7ece51b136d02f1c9ba5..420d8461c4afbd1717fd66090b519ad0cebff034 100644 (file)
@@ -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;
                }