Merge pull request #10497 from wdammak/patch-26

NEW: Add the current modulepart to the Conf class
This commit is contained in:
Laurent Destailleur 2019-02-13 16:43:46 +01:00 committed by GitHub
commit 2d5d2ccdc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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