mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user