diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 16d374fe6..a508ff308 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -388,8 +388,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $menuitems['help'] = array('link'=>'../out/out.Help.php?context='.$tmp[1], 'label'=>"help"); } /* Check if hook exists because otherwise callHook() will override $menuitems */ - if($this->hasHook('globalNavigationBar')) - $menuitems = $this->callHook('globalNavigationBar', $menuitems); + foreach($hookObjs as $hookObj) { + if (method_exists($hookObj, 'globalNavigationBar')) { + $menuitems = $hookObj->globalNavigationBar($this, $menuitems); + } + } foreach($menuitems as $menuitem) { echo "