diff options
Diffstat (limited to 'includes/util/score.inc')
-rw-r--r-- | includes/util/score.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/util/score.inc b/includes/util/score.inc index ad3c8e4..9deacca 100644 --- a/includes/util/score.inc +++ b/includes/util/score.inc @@ -113,7 +113,7 @@ function scoreOrderGlobal() { } if ($isLowerLoggedIn || $isLoggedIn) { - $app = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); + $app = $GLOBALS["ColdHazeApp"] ?? json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); foreach (json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/other/members.json"), true) as $member) { if ($member["name"] !== "unknown" && $member["name"] !== "fusion" && $member["name"] !== "new" && !str_starts_with($member["name"], "smol") && !str_ends_with($member["name"], "-travelling") && file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/$member[id].json")) { if (isset($member["color"])) { |