mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
Move Contact::Page_* constants to User::PAGE_FLAGS_*
This commit is contained in:
parent
11a4a57bfe
commit
ad9c67663d
23 changed files with 126 additions and 86 deletions
|
@ -544,7 +544,7 @@ function dfrn_request_content(App $a)
|
|||
$auto_confirm = false;
|
||||
|
||||
if (DBA::isResult($r)) {
|
||||
if ($r[0]['page-flags'] != Contact::PAGE_NORMAL && $r[0]['page-flags'] != Contact::PAGE_PRVGROUP) {
|
||||
if ($r[0]['page-flags'] != User::PAGE_FLAGS_NORMAL && $r[0]['page-flags'] != User::PAGE_FLAGS_PRVGROUP) {
|
||||
$auto_confirm = true;
|
||||
}
|
||||
|
||||
|
@ -572,7 +572,7 @@ function dfrn_request_content(App $a)
|
|||
'node' => $r[0]['nickname'],
|
||||
'dfrn_id' => $r[0]['issued-id'],
|
||||
'intro_id' => $intro[0]['id'],
|
||||
'duplex' => (($r[0]['page-flags'] == Contact::PAGE_FREELOVE) ? 1 : 0),
|
||||
'duplex' => (($r[0]['page-flags'] == User::PAGE_FLAGS_FREELOVE) ? 1 : 0),
|
||||
];
|
||||
dfrn_confirm_post($a, $handsfree);
|
||||
}
|
||||
|
@ -623,7 +623,7 @@ function dfrn_request_content(App $a)
|
|||
* because nobody is going to read the comments and
|
||||
* it doesn't matter if they know you or not.
|
||||
*/
|
||||
if ($a->profile['page-flags'] == Contact::PAGE_NORMAL) {
|
||||
if ($a->profile['page-flags'] == User::PAGE_FLAGS_NORMAL) {
|
||||
$tpl = Renderer::getMarkupTemplate('dfrn_request.tpl');
|
||||
} else {
|
||||
$tpl = Renderer::getMarkupTemplate('auto_request.tpl');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue