mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Fix for language change
This commit is contained in:
parent
a8fab57df2
commit
66ea0b3f98
1 changed files with 3 additions and 1 deletions
|
@ -96,7 +96,9 @@ if (!empty($_POST['save'])) {
|
|||
$v_language = escapeshellarg($_POST['v_language']);
|
||||
exec (VESTA_CMD."v-change-user-language ".$v_username." ".$v_language, $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
if (($_GET['user'] == 'admin') && (empty($_SESSION['error_msg']))) $_SESSION['language'] = $_POST['v_language'];
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if ((empty($_GET['user'])) || ($_GET['user'] == $_SESSION['user'])) $_SESSION['language'] = $_POST['v_language'];
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue