mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Fix typo.
This commit is contained in:
parent
30688cbe5a
commit
943de9045d
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ class Setup {
|
||||||
$cmds[$c] = ($cmd !== false) && Util::exec_0($cmd . " " . $c);
|
$cmds[$c] = ($cmd !== false) && Util::exec_0($cmd . " " . $c);
|
||||||
}
|
}
|
||||||
|
|
||||||
Util::safe_json(CMDS_PATH, $cmds);
|
Util::save_json(CMDS_PATH, $cmds);
|
||||||
}
|
}
|
||||||
foreach ($cmds as $c => $has) {
|
foreach ($cmds as $c => $has) {
|
||||||
define("HAS_CMD_" . strtoupper($c), $has);
|
define("HAS_CMD_" . strtoupper($c), $has);
|
||||||
|
|
|
@ -75,7 +75,7 @@ class Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function safe_json($path, $obj) {
|
public static function save_json($path, $obj) {
|
||||||
|
|
||||||
$json = json_encode($obj);
|
$json = json_encode($obj);
|
||||||
return file_put_contents($path, $json) !== false;
|
return file_put_contents($path, $json) !== false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue