Merge pull request #10497 from wdammak/patch-26
NEW: Add the current modulepart to the Conf class
This commit is contained in:
commit
2d5d2ccdc6
@ -421,6 +421,20 @@ 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;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Phase authentication / login
|
* Phase authentication / login
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user