Quick and dirty fix menu in FF

refs #5543
This commit is contained in:
Eric Lippmann 2015-11-04 17:49:43 +01:00
parent eda7f76d61
commit ba4256d983
1 changed files with 9 additions and 1 deletions

View File

@ -100,8 +100,16 @@ abstract class BadgeNavigationItemRenderer extends NavigationItemRenderer
$item->setCssClass('badge-nav-item');
$this->setEscapeLabel(false);
$label = $this->view()->escape($item->getLabel());
if (($icon = $item->getIcon()) !== null) {
$label = $this->view()->icon($icon) . $label;
$item->setIcon(null);
}
$item->setLabel($this->renderBadge() . $label);
return parent::render($item);
$html = parent::render($item);
if ($icon) {
$item->setIcon(true);
}
return $html;
}
/**