summaryrefslogtreecommitdiff
path: root/includes/jobs/UpdateAssets.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/jobs/UpdateAssets.php')
-rw-r--r--includes/jobs/UpdateAssets.php4
1 files changed, 2 insertions, 2 deletions
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"]);