]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't show see-all if less than hard max
authorEvan Prodromou <evan@status.net>
Thu, 7 Jul 2011 14:58:44 +0000 (10:58 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 7 Jul 2011 14:58:44 +0000 (10:58 -0400)
lib/moremenu.php

index a8ab1325551432ea67852d8db25d656fc8adcbf8..14e221feb630b23abd72c3facec4e79ace5b4f1b 100644 (file)
@@ -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');
+                    }
                 }
             }