don't show see-all if less than hard max

This commit is contained in:
Evan Prodromou 2011-07-07 10:58:44 -04:00
parent 749804f8cb
commit 12e0f89155

View File

@ -103,6 +103,7 @@ class MoreMenu extends Menu
$this->item($actionName, $args, $label, $description, $id, 'extended_menu'); $this->item($actionName, $args, $label, $description, $id, 'extended_menu');
} }
if ($total > self::HARD_MAX) {
$seeAll = $this->seeAllItem(); $seeAll = $this->seeAllItem();
if (!empty($seeAll)) { if (!empty($seeAll)) {
@ -110,6 +111,7 @@ class MoreMenu extends Menu
$this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all'); $this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all');
} }
} }
}
$this->out->elementEnd('ul'); $this->out->elementEnd('ul');