1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2023-12-20 12:02:08 -03:00
parent 4beef95ecd
commit 5717da4eb3
10 changed files with 221 additions and 7 deletions

View file

@ -13,6 +13,9 @@ function includeLangFile() {
if(empty($_SESSION)){
_session_start();
}
if(empty($_SESSION['language'])){
$_SESSION['language'] = '';
}
$_SESSION['language'] = str_replace('../', '', $_SESSION['language']);
setSiteLang();
@include_once "{$global['systemRootPath']}locale/{$_SESSION['language']}.php";