mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
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:
parent
cff90e20f2
commit
37253656e3
26 changed files with 139 additions and 118 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue