Enable invitations whenever invitations are enabled.

Use the same logic as GNU social does: invitations enabled and registration not closed.
This commit is contained in:
Joshua Judson Rosen 2014-12-09 20:25:37 -05:00
parent 0a048baea7
commit bd67dce5bb

View File

@ -276,7 +276,7 @@ class QvitterAction extends ApiAction
<li class="fullwidth"><a id="edit-profile-header-link"></a></li> <li class="fullwidth"><a id="edit-profile-header-link"></a></li>
<li class="fullwidth"><a id="settings" href="<?php print $instanceurl; ?>settings/profile" donthijack></a></li> <li class="fullwidth"><a id="settings" href="<?php print $instanceurl; ?>settings/profile" donthijack></a></li>
<li class="fullwidth"><a id="faq-link"></a></li> <li class="fullwidth"><a id="faq-link"></a></li>
<?php if (common_config('site','inviteonly') == 1) { ?> <?php if (common_config('invite', 'enabled') && !common_config('site', 'closed')) { ?>
<li class="fullwidth"><a id="invite-link" href="<?php print $instanceurl; ?>main/invite"></a></li> <li class="fullwidth"><a id="invite-link" href="<?php print $instanceurl; ?>main/invite"></a></li>
<?php } ?> <?php } ?>
<li class="fullwidth"><a id="classic-link"></a></li> <li class="fullwidth"><a id="classic-link"></a></li>