]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't show big invite button if invites are disabled
authorEvan Prodromou <evan@status.net>
Wed, 17 Oct 2012 14:09:40 +0000 (10:09 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 17 Oct 2012 14:09:40 +0000 (10:09 -0400)
actions/all.php
actions/public.php

index b9f9bdd503608ea36335672b04dfe2240ef4f8f1..1d9509f6db14a29333b82a1da533855024ce9907 100644 (file)
@@ -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,
index 8c724466368624ab98932f9e6179852b70fd4876..af2fcff842ed737e2b2c4c07b9be14fac8c8aae7 100644 (file)
@@ -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,