mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Updates
This commit is contained in:
parent
4beef95ecd
commit
5717da4eb3
10 changed files with 221 additions and 7 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue