From: Evan Prodromou Date: Wed, 17 Oct 2012 14:09:40 +0000 (-0400) Subject: Don't show big invite button if invites are disabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=86e3cbbcce73a6648a7751815eab2cf1560438ea;p=quix0rs-gnu-social.git Don't show big invite button if invites are disabled --- 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,