X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpublicgroupnav.php;h=69347bc0d4970ff99da8c5d2df9881b459496f81;hb=4e26527447852f88d48bf40a4f208079fcb77a49;hp=79190a11f05edb4c379e3419b1dc3dbffeb7b43d;hpb=7d64d8c78cfa102b91975598ef9e574d2ef14b8c;p=quix0rs-gnu-social.git diff --git a/lib/publicgroupnav.php b/lib/publicgroupnav.php index 79190a11f0..69347bc0d4 100644 --- a/lib/publicgroupnav.php +++ b/lib/publicgroupnav.php @@ -27,11 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} - -require_once INSTALLDIR.'/lib/widget.php'; +if (!defined('GNUSOCIAL')) { exit(1); } /** * Menu for public group of actions @@ -88,13 +84,6 @@ class PublicGroupNav extends Menu _('Featured users'), $this->actionName == 'featured', 'nav_featured'); } - if (!common_config('singleuser', 'enabled')) { - // TRANS: Menu item in search group navigation panel. - $this->out->menuItem(common_local_url('favorited'), _m('MENU','Popular'), - // TRANS: Menu item title in search group navigation panel. - _('Popular notices'), $this->actionName == 'favorited', 'nav_timeline_favorited'); - } - Event::handle('EndPublicGroupNav', array($this)); } $this->action->elementEnd('ul');