summaryrefslogtreecommitdiff
path: root/includes/jobs/PKSystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/jobs/PKSystem.php')
-rw-r--r--includes/jobs/PKSystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/jobs/PKSystem.php b/includes/jobs/PKSystem.php
index c3fce1b..045eb67 100644
--- a/includes/jobs/PKSystem.php
+++ b/includes/jobs/PKSystem.php
@@ -27,5 +27,5 @@ if ($app["other"]["id"] === $system) {
$data = file_get_contents("https://pluralkit.equestria.dev/v2/systems/$system", false, $ctx);
if (trim($data) !== "" && $data !== false) {
- file_put_contents("./data/$system/general.json", $data);
+ file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/general.json", $data);
} \ No newline at end of file