mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
NavigationController: Consider module types more important in method getConfigPath()
refs #10246
This commit is contained in:
parent
64ba37ad04
commit
7db05fa043
@ -118,10 +118,10 @@ class NavigationController extends Controller
|
||||
*/
|
||||
protected function getConfigPath($type, $username = null)
|
||||
{
|
||||
if (isset($this->defaultItemTypes[$type])) {
|
||||
$options = $this->defaultItemTypes[$type];
|
||||
} elseif (isset($this->moduleItemTypes[$type])) {
|
||||
if (isset($this->moduleItemTypes[$type])) {
|
||||
$options = $this->moduleItemTypes[$type];
|
||||
} elseif (isset($this->defaultItemTypes[$type])) {
|
||||
$options = $this->defaultItemTypes[$type];
|
||||
} else {
|
||||
throw new IcingaException('Invalid navigation item type %s provided', $type);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user