forked from Wavyzz/dolibarr
Update main.inc.php
Set current modulepart
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user