Source
619 foreach ( Multilingual::$langs as $key => $value ) {
620 foreach ( $value as $key_2=> $value_2 ) {
621 $short_array[] = $key_2;
622 }
623 }
624
625 if ( ! in_array($last, $short_array)) {
626 if ( ! isset($_SESSION) ) { session_start(); }
627 if ( ! isset($_SESSION['routed']) ) {
628 $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
629 $_SESSION['routed'] = "routed";
630
631 if ( in_array($lang, $short_array) ) {
632 //$this->redirect(Director::baseUrl().$lang);
633 $this->redirect($this->LangLink($lang));
634 unset($_SESSION['routed']);
Trace
- GeneralPage_Controller->init()
Page.php:317
- Page_Controller->init()
HomePage.php:90
- HomePage_Controller->init()
Controller.php:143
- Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:174
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
MultilingualPage.php:266
- MultilingualPage_Controller->handleRequest(SS_HTTPRequest,DataModel)
GeneralPage.php:754
- GeneralPage_Controller->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:75
- ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
RootURLController.php:130
- RootURLController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:385
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:149
- Director::direct(/,DataModel)
main.php:191