diff --git a/library/Zend/View/Helper/Navigation/Menu.php b/library/Zend/View/Helper/Navigation/Menu.php index d1623def388..c88e25b2c34 100644 --- a/library/Zend/View/Helper/Navigation/Menu.php +++ b/library/Zend/View/Helper/Navigation/Menu.php @@ -133,7 +133,7 @@ protected function renderDeepestMenu( $maxDepth, $escapeLabels, $addClassToListItem, - $liActiveClass + $liActiveClass = null ) { if (!$active = $this->findActive($container, $minDepth - 1, $maxDepth)) { return ''; @@ -164,7 +164,7 @@ protected function renderDeepestMenu( $liClasses = array(); // Is page active? if ($subPage->isActive(true)) { - $liClasses[] = $liActiveClass; + $liClasses[] = $liActiveClass ?: $this->getLiActiveClass(); } // Add CSS class from page to
  • if ($addClassToListItem && $subPage->getClass()) { @@ -256,7 +256,7 @@ protected function renderNormalMenu( $onlyActive, $escapeLabels, $addClassToListItem, - $liActiveClass + $liActiveClass = null ) { $html = ''; @@ -337,7 +337,7 @@ protected function renderNormalMenu( $liClasses = array(); // Is page active? if ($isActive) { - $liClasses[] = $liActiveClass; + $liClasses[] = $liActiveClass ?: $this->getLiActiveClass(); } // Add CSS class from page to
  • if ($addClassToListItem && $page->getClass()) {