mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-23 05:49:55 +01:00
Fix typo.
This commit is contained in:
parent
30688cbe5a
commit
943de9045d
@ -101,7 +101,7 @@ class Setup {
|
||||
$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) {
|
||||
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);
|
||||
return file_put_contents($path, $json) !== false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user