]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_request.php
Moved global PAGE_* to Profile class (#5500)
[friendica.git] / mod / dfrn_request.php
index 566ee152b10fdbcb812b67e0ae6f2c6594f26173..9696e059a9aec48c9135399c4628a2b96c6bf981 100644 (file)
@@ -546,7 +546,7 @@ function dfrn_request_content(App $a)
                        $auto_confirm = false;
 
                        if (DBA::isResult($r)) {
-                               if ($r[0]['page-flags'] != PAGE_NORMAL && $r[0]['page-flags'] != PAGE_PRVGROUP) {
+                               if ($r[0]['page-flags'] != Contact::PAGE_NORMAL && $r[0]['page-flags'] != Contact::PAGE_PRVGROUP) {
                                        $auto_confirm = true;
                                }
 
@@ -574,7 +574,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'] == PAGE_FREELOVE) ? 1 : 0),
+                                               'duplex'   => (($r[0]['page-flags'] == Contact::PAGE_FREELOVE) ? 1 : 0),
                                        ];
                                        dfrn_confirm_post($a, $handsfree);
                                }
@@ -626,7 +626,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'] == PAGE_NORMAL) {
+               if ($a->profile['page-flags'] == Contact::PAGE_NORMAL) {
                        $tpl = get_markup_template('dfrn_request.tpl');
                } else {
                        $tpl = get_markup_template('auto_request.tpl');