mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
Merge pull request #358 from maoxian-1/php8
Fix the effect of paths on menu selections
This commit is contained in:
@@ -2242,7 +2242,7 @@ function menu ($selected = "home") {
|
|||||||
global $USERUPDATESET;
|
global $USERUPDATESET;
|
||||||
//no this option in config.php
|
//no this option in config.php
|
||||||
$enablerequest = 'yes';
|
$enablerequest = 'yes';
|
||||||
$script_name = $_SERVER["SCRIPT_FILENAME"];
|
$script_name = $_SERVER["SCRIPT_NAME"];
|
||||||
if (preg_match("/index/i", $script_name)) {
|
if (preg_match("/index/i", $script_name)) {
|
||||||
$selected = "home";
|
$selected = "home";
|
||||||
}elseif (preg_match("/forums/i", $script_name)) {
|
}elseif (preg_match("/forums/i", $script_name)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user