From 01ba32efbcc5d1db25f218279b8f077fd17bea2d Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Mon, 4 Feb 2019 17:52:15 +0100 Subject: [PATCH] Update main.inc.php Set current modulepart --- htdocs/main.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 2f5e53ecbf5..4e585cc6778 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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 */