]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Stopped using deprecated constants NETWORK_* (#5537)
[friendica.git] / mod / redir.php
index 0272ff1c87d001bc3dd3b6720455377e27acbd9b..727b70d660b17242b269327ddc8a803ea87ab8ee 100644 (file)
@@ -2,6 +2,7 @@
 
 use Friendica\App;
 use Friendica\Core\L10n;
+use Friendica\Core\Protocol;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
@@ -31,7 +32,7 @@ function redir_init(App $a) {
 
                $contact_url = $contact['url'];
 
-               if ($contact['network'] !== NETWORK_DFRN // Authentication isn't supported for non DFRN contacts.
+               if ($contact['network'] !== Protocol::DFRN // Authentication isn't supported for non DFRN contacts.
                        || (!local_user() && !remote_user()) // Visitors (not logged in or not remotes) can't authenticate.
                        || (!empty($a->contact['id']) && $a->contact['id'] == $cid)) // Local user is already authenticated.
                {