From 7963fc270a46a0ddf64400b7f9eba085be9d6c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E7=BA=BF?= <13816653+maoxian-1@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:17:57 +0800 Subject: [PATCH] Fix the effect of paths on menu selections --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 25b19fcb..96be416a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2242,7 +2242,7 @@ function menu ($selected = "home") { global $USERUPDATESET; //no this option in config.php $enablerequest = 'yes'; - $script_name = $_SERVER["SCRIPT_FILENAME"]; + $script_name = $_SERVER["SCRIPT_NAME"]; if (preg_match("/index/i", $script_name)) { $selected = "home"; }elseif (preg_match("/forums/i", $script_name)) {