From 12e0f8915585a821e678c33c7ac88beb73f9ed82 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 7 Jul 2011 10:58:44 -0400 Subject: [PATCH] don't show see-all if less than hard max --- lib/moremenu.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/moremenu.php b/lib/moremenu.php index a8ab132555..14e221feb6 100644 --- a/lib/moremenu.php +++ b/lib/moremenu.php @@ -103,11 +103,13 @@ class MoreMenu extends Menu $this->item($actionName, $args, $label, $description, $id, 'extended_menu'); } - $seeAll = $this->seeAllItem(); + if ($total > self::HARD_MAX) { + $seeAll = $this->seeAllItem(); - if (!empty($seeAll)) { - list($actionName, $args, $label, $description, $id) = $seeAll; - $this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all'); + if (!empty($seeAll)) { + list($actionName, $args, $label, $description, $id) = $seeAll; + $this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all'); + } } } -- 2.39.5