mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-22 08:07:47 +00:00
Update index.php
This commit is contained in:
parent
39cf9f728a
commit
aac024d0d1
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ if($lang == 'zh' || $lang == 'pt' ){
|
|||
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5);
|
||||
}
|
||||
|
||||
$acceptLang = ['de','es','it','zh-CN','nl','pl','el','pt-BR','ru','cs'];
|
||||
$acceptLang = ['de','es','it','zh-CN','nl','pl','el','pt-BR','ru','cs','fa'];
|
||||
$lang = in_array($lang, $acceptLang) ? $lang : 'en';
|
||||
$lang = strtolower($lang);
|
||||
require_once "lang/{$lang}.php";
|
||||
|
|
Loading…
Reference in a new issue