Update main.inc.php
Set current modulepart
This commit is contained in:
parent
3babc11312
commit
01ba32efbc
@ -421,6 +421,19 @@ if (! empty($_SESSION["disablemodules"]))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set current modulepart
|
||||||
|
$modulepart = explode("/",$_SERVER["PHP_SELF"]);
|
||||||
|
if(is_array($modulepart) && count($modulepart)>0)
|
||||||
|
{
|
||||||
|
foreach($conf->modules as $module)
|
||||||
|
{
|
||||||
|
if(in_array($module, $modulepart))
|
||||||
|
{
|
||||||
|
$conf->modulepart=$module;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Phase authentication / login
|
* Phase authentication / login
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user