mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
3ede48cd0f
commit
71d2d170ec
3 changed files with 4 additions and 13 deletions
|
@ -9,7 +9,6 @@ if (!empty($_GET['lang'])) {
|
|||
$_GET['lang'] = str_replace(["'", '"', """, "'"], ['', '', '', ''], xss_esc($_GET['lang']));
|
||||
}
|
||||
|
||||
setSiteLang();
|
||||
@include_once "{$global['systemRootPath']}locale/{$_SESSION['language']}.php";
|
||||
|
||||
function __($str, $allowHTML = false)
|
||||
|
@ -137,7 +136,7 @@ function setSiteLang()
|
|||
setLanguage($config->getLanguage());
|
||||
}
|
||||
if (empty($_SESSION['language'])) {
|
||||
return setLanguage('en_US');
|
||||
setLanguage('en_US');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue