if (!$this->Session->check('Config.language')) {//checking the 1st favorite language of the user's browser $browserLanguage = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
AppController::_checkBrowserLanguage() - APP/Controller/AppController.php, line 126
AppController::beforeFilter() - APP/Controller/AppController.php, line 69
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110