forked from GNUsocial/gnu-social
don't show see-all if less than hard max
This commit is contained in:
parent
749804f8cb
commit
12e0f89155
@ -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');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user