From 319639a2327c11d1d5c8248db6881c07ee64ba97 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 19 Sep 2011 16:19:12 -0400 Subject: [PATCH] hide popular notice section on non-private sites --- actions/all.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actions/all.php b/actions/all.php index a7f325e014..cbd2805ca3 100644 --- a/actions/all.php +++ b/actions/all.php @@ -210,8 +210,11 @@ class AllAction extends ProfileAction } $ibs->show(); } - $pop = new PopularNoticeSection($this); - $pop->show(); + // XXX: make this a little more convenient + if (common_config('site', 'private')) { + $pop = new PopularNoticeSection($this); + $pop->show(); + } // $pop = new InboxTagCloudSection($this, $this->user); // $pop->show(); }