]> git.mxchange.org Git - friendica.git/blobdiff - mod/invite.php
Replace REGISTER_* constants by Module\Register::* ones
[friendica.git] / mod / invite.php
index 3b1667a79aeb9e898dd80f9222ab136fdc7ac2ad..e8901d0710907bc7ff57ad1f8b711254d7dc2bec 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\Renderer;
 use Friendica\Core\System;
+use Friendica\Module\Register;
 use Friendica\Protocol\Email;
 use Friendica\Util\Strings;
 
@@ -125,14 +126,14 @@ function invite_content(App $a) {
 
        $dirloc = Config::get('system', 'directory');
        if (strlen($dirloc)) {
-               if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) {
+               if (intval(Config::get('config', 'register_policy')) === Register::CLOSED) {
                        $linktxt = L10n::t('Visit %s for a list of public sites that you can join. Friendica members on other sites can all connect with each other, as well as with members of many other social networks.', $dirloc . '/servers');
                } else {
                        $linktxt = L10n::t('To accept this invitation, please visit and register at %s or any other public Friendica website.', System::baseUrl())
                        . "\r\n" . "\r\n" . L10n::t('Friendica sites all inter-connect to create a huge privacy-enhanced social web that is owned and controlled by its members. They can also connect with many traditional social networks. See %s for a list of alternate Friendica sites you can join.', $dirloc . '/servers');
                }
        } else { // there is no global directory URL defined
-               if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) {
+               if (intval(Config::get('config', 'register_policy')) === Register::CLOSED) {
                        $o = L10n::t('Our apologies. This system is not currently configured to connect with other public sites or invite members.');
                        return $o;
                } else {