mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
Fix the effect of paths on menu selections
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user