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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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