diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index ae7fbe460..3c6fc7978 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -466,13 +466,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
if($accessobject->check_view_access('Tasks', array('action'=>'menuTasks'))) {
echo "
";
- //$this->addFooterJS('checkTasks();');
}
}
/* }}} End of menu tasks */
@@ -611,7 +605,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
return;
} /* }}} */
- protected function showNavigationBar($menuitems, $options = array()) { /* {{{ */
+ protected function showNavigationBar($menuitems, $options=array()) { /* {{{ */
$content = '';
$content .= "\n";
foreach($menuitems as $menuitem) {
diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php
index 73304bc3f..28ad6aee4 100644
--- a/views/bootstrap4/class.Bootstrap4.php
+++ b/views/bootstrap4/class.Bootstrap4.php
@@ -327,12 +327,15 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo " \n";
echo "
\n";
$menuitems = array();
+ /* calendar {{{ */
if ($this->params['enablecalendar'] && $accessobject->check_view_access('Calendar')) $menuitems['calendar'] = array('link'=>$this->params['settings']->_httpRoot.'out/out.Calendar.php?mode='.$this->params['calendardefaultview'], 'label'=>"calendar");
if ($this->params['user']->isAdmin()) $menuitems['admintools'] = array('link'=>$this->params['settings']->_httpRoot.'out/out.AdminTools.php', 'label'=>"admin_tools");
if($this->params['enablehelp']) {
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$menuitems['help'] = array('link'=>$this->params['settings']->_httpRoot.'out/out.Help.php?context='.$tmp[1], 'label'=>"help");
}
+ /* }}} End of calendar */
+
/* Check if hook exists because otherwise callHook() will override $menuitems */
if($this->hasHook('globalNavigationBar'))
$menuitems = $this->callHook('globalNavigationBar', $menuitems);
@@ -356,13 +359,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
if($accessobject->check_view_access('Tasks', array('action'=>'menuTasks'))) {
echo " ";
- //$this->addFooterJS('checkTasks();');
}
}
/* }}} End of menu tasks */