]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Public tabs - only show 'Featured' tab when featured users are defined in config.php
authorZach Copley <zach@controlyourself.ca>
Thu, 20 Nov 2008 21:30:22 +0000 (16:30 -0500)
committerZach Copley <zach@controlyourself.ca>
Thu, 20 Nov 2008 21:30:22 +0000 (16:30 -0500)
darcs-hash:20081120213022-7b5ce-df10d289e8c0e1d06f6e10d5ff642eb93752be19.gz

lib/stream.php

index b19bf7c0faeaa60214b2b4115dfd203e6deb4856..135c59727cf6d45034a2fc525c890dd434788696 100644 (file)
@@ -38,8 +38,10 @@ class StreamAction extends PersonalAction {
                common_menu_item(common_local_url('tag'), _('Recent tags'),
                        _('Recent tags'), $action == 'tag');
 
-               common_menu_item(common_local_url('featured'), _('Featured'),
-                       _('Notices from featured Users'), $action == 'featured');
+               if (count(common_config('nickname', 'featured')) > 0) {
+                       common_menu_item(common_local_url('featured'), _('Featured'),
+                               _('Notices from featured Users'), $action == 'featured');
+               }
 
                common_menu_item(common_local_url('favorited'), _('Favorited'),
                        _("Most favorited notices"), $action == 'favorited');