From 06752f6f306a56f1e1fb8a62f00b0c752235e59e Mon Sep 17 00:00:00 2001 From: Thayol Date: Tue, 29 Dec 2020 01:04:13 +0100 Subject: [PATCH] Fixed typo --- libraries/optimizer_settings.php | 4 ++-- templates/settings.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/optimizer_settings.php b/libraries/optimizer_settings.php index 37af460..b436a69 100644 --- a/libraries/optimizer_settings.php +++ b/libraries/optimizer_settings.php @@ -19,7 +19,7 @@ class optimizer_settings $raw = file_get_contents($this->path); $json = json_decode($raw, true); - $this->osu_path = $json["osu_folder"] ?? ""; + $this->osu_path = $json["osu_path"] ?? ""; } public function save() @@ -28,7 +28,7 @@ class optimizer_settings $json["osu_path"] = $this->osu_path; $raw = json_encode($json); - file_put_contents($this->path); + file_put_contents($this->path, $raw); } public function set_osu_path($path) : void diff --git a/templates/settings.html b/templates/settings.html index f653dea..a0daa8e 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -1,11 +1,11 @@

SETTINGS

-
+ -
+

(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)

{{ SETTINGS_BACK }} - +
\ No newline at end of file