Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490)
* Rewrite: - moved all CONTACT_* constants from boot.php to Contact class * CR request: - renamed Contact::CONTACT_IS_* -> Contact::* ;-)
This commit is contained in:
committed by
Hypolite Petovan
parent
cff90e20f2
commit
37253656e3
@@ -309,7 +309,7 @@ function dfrn_request_post(App $a)
|
||||
if (strlen($ret[0]['issued-id'])) {
|
||||
notice(L10n::t('You have already introduced yourself here.') . EOL);
|
||||
return;
|
||||
} elseif ($ret[0]['rel'] == CONTACT_IS_FRIEND) {
|
||||
} elseif ($ret[0]['rel'] == Contact::FRIEND) {
|
||||
notice(L10n::t('Apparently you are already friends with %s.', $a->profile['name']) . EOL);
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user