Merge pull request #358 from maoxian-1/php8

Fix the effect of paths on menu selections
This commit is contained in:
xiaomlove
2025-08-30 22:31:21 +07:00
committed by GitHub
+1 -1
View File
@@ -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)) {