From 86e3cbbcce73a6648a7751815eab2cf1560438ea Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 17 Oct 2012 10:09:40 -0400 Subject: [PATCH] Don't show big invite button if invites are disabled --- actions/all.php | 2 +- actions/public.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/all.php b/actions/all.php index b9f9bdd503..1d9509f6db 100644 --- a/actions/all.php +++ b/actions/all.php @@ -207,7 +207,7 @@ class AllAction extends ProfileAction { // Show invite button, as long as site isn't closed, and // we have a logged in user. - if (!common_config('site', 'closed') && common_logged_in()) { + if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) { if (!common_config('site', 'private')) { $ibs = new InviteButtonSection( $this, diff --git a/actions/public.php b/actions/public.php index 8c72446636..af2fcff842 100644 --- a/actions/public.php +++ b/actions/public.php @@ -246,7 +246,7 @@ class PublicAction extends Action { // Show invite button, as long as site isn't closed, and // we have a logged in user. - if (!common_config('site', 'closed') && common_logged_in()) { + if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) { if (!common_config('site', 'private')) { $ibs = new InviteButtonSection( $this, -- 2.39.2