1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2023-03-09 14:15:23 -03:00
parent 3ede48cd0f
commit 71d2d170ec
3 changed files with 4 additions and 13 deletions

View file

@ -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');
}
}