ErrorException [ Notice ]: Undefined index: HTTP_ACCEPT_LANGUAGE

APPPATH/classes/Controller/Template.php [ 18 ]

13     
14     // Wspierają nas
15     $this->template->support = ORM::factory('Support')->order_by('order','ASC')->find_all();
16     
17     // Wybór języka
18     $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
19     if($lang != 'pl' && !Session::instance()->get('lang_change', FALSE)){
20         Session::instance()->set('lang_change', $lang);
21         HTTP::redirect('http://en.woodcamp.pl');
22     }
23     
  1. APPPATH/classes/Controller/Template.php [ 18 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Template->before()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  7. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment