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/PKMembers.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'includes/jobs/PKMembers.php') diff --git a/includes/jobs/PKMembers.php b/includes/jobs/PKMembers.php index 529a820..536853d 100644 --- a/includes/jobs/PKMembers.php +++ b/includes/jobs/PKMembers.php @@ -30,6 +30,8 @@ if (trim($data) !== "" && $data !== false) { $parsed = json_decode($data, true); foreach ($parsed as $index => $member) { + echo(($member["display_name"] ?? $member["name"]) . "\n"); + if (isset($member["avatar_url"])) { $dominantColor = substr(ColorThief::getColor($member["avatar_url"], outputFormat: "hex"), 1); } else { @@ -44,5 +46,8 @@ if (trim($data) !== "" && $data !== false) { } $data = json_encode($parsed, JSON_PRETTY_PRINT); - file_put_contents("./data/$system/members.json", $data); -} \ No newline at end of file + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/members.json", $data); +} + +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/navigation.json", "{}"); +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/home.json", "{}"); \ No newline at end of file -- cgit