From 7db05fa043f7c99b0fcba42703e99d16d907b213 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 30 Sep 2015 09:47:26 +0200 Subject: [PATCH] NavigationController: Consider module types more important in method getConfigPath() refs #10246 --- application/controllers/NavigationController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/NavigationController.php b/application/controllers/NavigationController.php index 98ccc325b..daba47a11 100644 --- a/application/controllers/NavigationController.php +++ b/application/controllers/NavigationController.php @@ -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); }