From 76b2600cd8cc76966378df9b508cefc22a1ec15b Mon Sep 17 00:00:00 2001 From: Go Johansson Date: Fri, 16 Dec 2022 22:59:59 +0100 Subject: [PATCH] a --- src/static/php/grill.php | 4 ++-- src/static/php/upload.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/static/php/grill.php b/src/static/php/grill.php index d193949..d7e078c 100644 --- a/src/static/php/grill.php +++ b/src/static/php/grill.php @@ -2,12 +2,12 @@ function checkConfig() { - if (!file_exists(__DIR__ . '../config.json')) { + if (!file_exists(__DIR__ . '/../config.json')) { throw new Exception('Cant read settings file.', 500); } try { $settings = json_decode( - file_get_contents(__DIR__ . '../config.json'), + file_get_contents(__DIR__ . '/../config.json'), true, ); if ($settings['PHP_ERRORS']) { diff --git a/src/static/php/upload.php b/src/static/php/upload.php index 9fbe3ff..e736a85 100644 --- a/src/static/php/upload.php +++ b/src/static/php/upload.php @@ -20,12 +20,12 @@ function checkConfig() { - if (!file_exists(__DIR__ . '../config.json')) { + if (!file_exists(__DIR__ . '/../config.json')) { throw new Exception('Cant read settings file.', 500); } try { $settings = json_decode( - file_get_contents(__DIR__ . '../config.json'), + file_get_contents(__DIR__ . '/../config.json'), true, ); if ($settings['PHP_ERRORS']) {