mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-08-01 14:30:45 +02:00
Saving settings doesn't save #116
This commit is contained in:
@@ -298,7 +298,7 @@ if (isset($_POST['ajax']) && !FM_READONLY) {
|
|||||||
if (isset($_POST['type']) && $_POST['type'] == "settings") {
|
if (isset($_POST['type']) && $_POST['type'] == "settings") {
|
||||||
global $cfg, $lang, $report_errors, $show_hidden_files, $lang_list;
|
global $cfg, $lang, $report_errors, $show_hidden_files, $lang_list;
|
||||||
$newLng = $_POST['js-language'];
|
$newLng = $_POST['js-language'];
|
||||||
fm_get_translations();
|
fm_get_translations([]);
|
||||||
if (!array_key_exists($newLng, $lang_list)) {
|
if (!array_key_exists($newLng, $lang_list)) {
|
||||||
$newLng = 'en';
|
$newLng = 'en';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user