Skip to content

Commit

Permalink
Quick and dirty fix menu in FF
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Nov 4, 2015
1 parent eda7f76 commit ba4256d
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -100,8 +100,16 @@ public function render(NavigationItem $item = null)
$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;
}

/**
Expand Down

0 comments on commit ba4256d

Please sign in to comment.