]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Moved global PAGE_* to Profile class (#5500)
[friendica.git] / mod / wall_attach.php
index b13d1f6e0a779c568f1f9e3a80a8d6acd014eae9..0c794902cbfca6fbb38796855bf2c95c658db4a0 100644 (file)
@@ -8,6 +8,7 @@ use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
+use Friendica\Model\Contact;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Mimetype;
 
@@ -42,7 +43,7 @@ function wall_attach_post(App $a) {
        $page_owner_uid   = $r[0]['uid'];
        $page_owner_cid   = $r[0]['id'];
        $page_owner_nick  = $r[0]['nickname'];
-       $community_page   = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false);
+       $community_page   = (($r[0]['page-flags'] == Contact::PAGE_COMMUNITY) ? true : false);
 
        if((local_user()) && (local_user() == $page_owner_uid))
                $can_post = true;