forked from kevinowino869/mitrobill
Fix Lang function again
This commit is contained in:
@ -321,10 +321,8 @@ switch ($action) {
|
||||
|
||||
if (file_exists($lan_file)) {
|
||||
$_L = json_decode(file_get_contents($lan_file), true);
|
||||
$_SESSION['Lang'] = $_L;
|
||||
} else {
|
||||
$_L['author'] = 'Auto Generated by iBNuX Script';
|
||||
$_SESSION['Lang'] = $_L;
|
||||
file_put_contents($lan_file, json_encode($_L));
|
||||
}
|
||||
User::setAttribute("Language", $selected_language);
|
||||
|
@ -314,7 +314,6 @@ switch ($action) {
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'language')->find_one();
|
||||
$d->value = $lan;
|
||||
$d->save();
|
||||
unset($_SESSION['Lang']);
|
||||
_log('[' . $admin['username'] . ']: ' . 'Settings Saved Successfully', $admin['user_type'], $admin['id']);
|
||||
r2(U . 'settings/localisation', 's', 'Settings Saved Successfully');
|
||||
}
|
||||
|
Reference in New Issue
Block a user