From 02eda3e4c9b4ba718f1fff70b7328ed8cdd5e63b Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 2 Apr 2023 23:03:02 +0200 Subject: Updated 35 files, added 11 files and deleted includes/components/search.inc (automated) --- includes/jobs/UpdateAssets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/jobs/UpdateAssets.php') diff --git a/includes/jobs/UpdateAssets.php b/includes/jobs/UpdateAssets.php index 8898b94..e52a6fa 100644 --- a/includes/jobs/UpdateAssets.php +++ b/includes/jobs/UpdateAssets.php @@ -19,7 +19,7 @@ function downloadAssets($system, $path = null) { $path = $system; } - $general = json_decode(file_get_contents("./data/$path/general.json"), true); + $general = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$path/general.json"), true); if ($options["type"] === "system") { if (isset($general["avatar_url"])) { @@ -39,7 +39,7 @@ function downloadAssets($system, $path = null) { } } - $members = json_decode(file_get_contents("./data/$path/members.json"), true); + $members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$path/members.json"), true); foreach ($members as $member) { $id = preg_replace("/^([\da-f]{8})-([\da-f]{4})-([\da-f]{4})-([\da-f]{4})-([\da-f]{12})$/", "$1$2$3$4$5", $general["uuid"]) . preg_replace("/^([\da-f]{8})-([\da-f]{4})-([\da-f]{4})-([\da-f]{4})-([\da-f]{12})$/", "$1$2$3$4$5", $member["uuid"]); -- cgit