From bf9d440a9508381bbf045aa752c1e272782fae78 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 27 Jun 2023 18:17:37 +0200 Subject: [PATCH] Fix BASE_DIR when accessing /tools --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 6a552910..828f73ad 100644 --- a/common.php +++ b/common.php @@ -97,7 +97,7 @@ $size = count($tmp) - 1; for($i = 1; $i < $size; $i++) $basedir .= '/' . $tmp[$i]; -$basedir = str_replace(array('/admin', '/install'), '', $basedir); +$basedir = str_replace(array('/admin', '/install', '/tools'), '', $basedir); define('BASE_DIR', $basedir); if(!IS_CLI) {