]> jfr.im git - uguu.git/commitdiff
a
authorGo Johansson <redacted>
Fri, 16 Dec 2022 21:59:59 +0000 (22:59 +0100)
committerGo Johansson <redacted>
Fri, 16 Dec 2022 21:59:59 +0000 (22:59 +0100)
src/static/php/grill.php
src/static/php/upload.php

index d193949355f18f231a358b61aabe74df83c8dc05..d7e078cb620cfa7443a9bb5d86b6f196230dbe59 100644 (file)
@@ -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']) {
index 9fbe3ff3c052be7dda9aa9118713a5147baf1594..e736a8543c205dec60c7ff75273ff36223785fee 100644 (file)
     
     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']) {