summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2008-11-20 16:30:22 -0500
committerZach Copley <zach@controlyourself.ca>2008-11-20 16:30:22 -0500
commit04381435a8ea42033556660df254dfaa9417f4d8 (patch)
tree2bd52380de42f5c3de1f789528737f362d15a97b /lib
parentf3b5b5de8af2a3d716e2d571c24d6970f54edfe7 (diff)
Public tabs - only show 'Featured' tab when featured users are defined in config.php
darcs-hash:20081120213022-7b5ce-df10d289e8c0e1d06f6e10d5ff642eb93752be19.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/stream.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stream.php b/lib/stream.php
index b19bf7c0f..135c59727 100644
--- a/lib/stream.php
+++ b/lib/stream.php
@@ -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');