Fixed directory structure when cloned.

This commit is contained in:
2021-06-10 13:59:28 +02:00
parent 51618d2dcc
commit 27409a3d35
2 changed files with 16 additions and 0 deletions
+5
View File
@@ -253,6 +253,11 @@ if ($trusted)
$merged["games"][] = $merged_game;
if (!file_exists("../matches"))
{
mkdir("../matches", 0777, true);
}
file_put_contents("../matches/{$match_id}.json", json_encode($merged));
header("Content-Type: application/json");