From d492bff7b7bb475b44d26a7af7e1c01c0e237b78 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Fri, 1 Nov 2024 19:42:48 +0200 Subject: [PATCH] Config file editing troubleshooting --- app/pages/config.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/pages/config.php b/app/pages/config.php index ce16ea4..17e4d2c 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -222,8 +222,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { include '../app/templates/config-configfile-edit.php'; } else { if ($userObject->hasRight($user_id, 'view config file')) { - // we need to reload config, it could be edited - $config = require $config_file; include '../app/templates/config-configfile.php'; } else { include '../app/templates/error-unauthorized.php';