2
0
forked from Wavyzz/dolibarr

Update main.inc.php

Set current modulepart
This commit is contained in:
wdammak
2019-02-04 17:52:15 +01:00
committed by GitHub
parent 3babc11312
commit 01ba32efbc

View File

@@ -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
*/