From 1482e41f7483b7751a4ba4c1158c1589e0e54bc8 Mon Sep 17 00:00:00 2001 From: rinoshiyo <45587676+rinoshiyo@users.noreply.github.com> Date: Mon, 18 May 2020 13:15:54 +0900 Subject: [PATCH] fix settings are not saved. (#361) --- tinyfilemanager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index c2e6cf3..8b9a591 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -3082,12 +3082,11 @@ class FM_Zipper_Tar function save() { - global $root_path; - $fm_file = $root_path.$_SERVER["PHP_SELF"]; + $fm_file = __FILE__; $var_name = '$CONFIG'; $var_value = var_export(json_encode($this->data), true); $config_string = "