Josh's Changes

This commit is contained in:
2026-04-03 20:43:00 -04:00
parent df06dcc0d7
commit 03825c1048
16 changed files with 216 additions and 54 deletions
+3 -1
View File
@@ -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);