From 12af23d88f887c5e3dc8574827f3fe6a7bd7fa1c Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 30 Sep 2023 20:09:33 +0200 Subject: [PATCH] Use a variable for the config file --- config.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config.php b/config.php index c0b498c..bc7bbd9 100644 --- a/config.php +++ b/config.php @@ -4,6 +4,7 @@ * Licensed under the GNU Affero General Public License version 3.0 */ +$configFile = "config.ini"; $Stylesheet = "index.css"; $Icon = "favicon.svg"; $uploadDir = "uploads/"; @@ -25,9 +26,7 @@ $enableTemporaryKeys = true; $enableUploadRemoval = true; $enableKeyUploadRemoval = true; -define('CONFIG_FILE', 'config.ini'); - -if (!file_exists(CONFIG_FILE)) { +if (!file_exists($configFile)) { return; }