mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
da58cebc83
commit
084d70a96d
1 changed files with 6 additions and 1 deletions
|
@ -138,6 +138,7 @@ function setSiteLang()
|
|||
} else if ($userLocation) {
|
||||
User_Location::changeLang();
|
||||
}
|
||||
try {
|
||||
if (empty($config) || !is_object($config)) {
|
||||
require_once $global['systemRootPath'] . 'objects/configuration.php';
|
||||
if (!class_exists('Configuration')) {
|
||||
|
@ -145,7 +146,11 @@ function setSiteLang()
|
|||
}
|
||||
$config = new Configuration();
|
||||
}
|
||||
if (empty($_SESSION['language']) && !empty($config)) {
|
||||
} catch (Exception $exc) {
|
||||
_error_log('setSiteLang '.$exc->getMessage());
|
||||
}
|
||||
|
||||
if (empty($_SESSION['language']) && is_object($config)) {
|
||||
setLanguage($config->getLanguage());
|
||||
}
|
||||
if (empty($_SESSION['language'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue