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']) {