NavigationController: Consider module types more important in method getConfigPath()

refs #10246
This commit is contained in:
Johannes Meyer 2015-09-30 09:47:26 +02:00
parent 64ba37ad04
commit 7db05fa043

View File

@ -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);
}