From 529b6a75baabd42dbe8447830d0a62f63d1666df Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Tue, 19 Nov 2024 15:43:00 +0900 Subject: [PATCH] Set base path for config file to load in edit_base.php --- www/includes/edit_base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/includes/edit_base.php b/www/includes/edit_base.php index fd2256d8..ad25a4c4 100644 --- a/www/includes/edit_base.php +++ b/www/includes/edit_base.php @@ -24,7 +24,7 @@ declare(strict_types=1); ob_start(); -require 'config.php'; /** @phpstan-ignore-line Is path, is symlinked */ +require getcwd() . DIRECTORY_SEPARATOR . 'config.php'; // should be utf8 header("Content-type: text/html; charset=" . DEFAULT_ENCODING);