merge
This commit is contained in:
commit
ffa705005e
4149 changed files with 1180197 additions and 16 deletions
|
|
@ -186,6 +186,22 @@
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get languages from browser setting.
|
||||
*
|
||||
* @return string Browser setting for accepted languages.
|
||||
*/
|
||||
public function getBrowserLanguages()
|
||||
{
|
||||
if(array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)) {
|
||||
return $_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
||||
}
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a URL-route.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue