Skip to content

Commit

Permalink
NavigationController: Consider module types more important in method …
Browse files Browse the repository at this point in the history
…getConfigPath()

refs #10246
  • Loading branch information
Johannes Meyer committed Sep 30, 2015
1 parent 64ba37a commit 7db05fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/NavigationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ protected function listItemTypes()
*/
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);
}
Expand Down

0 comments on commit 7db05fa

Please sign in to comment.