Josh's Changes
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/utils.php';
|
||||
|
||||
function getDataDirectory(): string {
|
||||
return __DIR__ . '/../data';
|
||||
}
|
||||
@@ -49,7 +51,7 @@ function writeJsonFile(string $filename, $data): bool {
|
||||
fclose($fp);
|
||||
return false;
|
||||
}
|
||||
$json = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||
$json = json_encode($data, JSON_PRETTY_PRINT | familyHubJsonEncodeShellFlags());
|
||||
if ($json === false) {
|
||||
flock($fp, LOCK_UN);
|
||||
fclose($fp);
|
||||
|
||||
Reference in New Issue
Block a user