Fixed typo

This commit is contained in:
2020-12-29 01:04:13 +01:00
parent b026c4d7a7
commit 06752f6f30
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class optimizer_settings
$raw = file_get_contents($this->path); $raw = file_get_contents($this->path);
$json = json_decode($raw, true); $json = json_decode($raw, true);
$this->osu_path = $json["osu_folder"] ?? ""; $this->osu_path = $json["osu_path"] ?? "";
} }
public function save() public function save()
@@ -28,7 +28,7 @@ class optimizer_settings
$json["osu_path"] = $this->osu_path; $json["osu_path"] = $this->osu_path;
$raw = json_encode($json); $raw = json_encode($json);
file_put_contents($this->path); file_put_contents($this->path, $raw);
} }
public function set_osu_path($path) : void public function set_osu_path($path) : void
+3 -3
View File
@@ -1,11 +1,11 @@
<div class="warn"> <div class="warn">
<h2>SETTINGS</h2> <h2>SETTINGS</h2>
<form method="POST" action="./?settings"> <form id="settings" method="POST" action="./?settings">
<label for="osu_folder">osu! folder: </label> <label for="osu_folder">osu! folder: </label>
<input type="text" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br /> <input type="text" form="settings" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br />
<p style="font-size:0.9em">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p> <p style="font-size:0.9em">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
{{ SETTINGS_BACK }} {{ SETTINGS_BACK }}
<input type="submit" value="Save" /> <input type="submit" form="settings" value="Save" />
</form> </form>
<form id="cancelform" method="GET" action="./"></form> <form id="cancelform" method="GET" action="./"></form>
</div> </div>