]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Moved global PAGE_* to Profile class (#5500)
[friendica.git] / mod / photos.php
index fb66cef1dbe2579ee1499064c950682ad18627b8..b7e678487a8ac2978552d169ad111f247ef6bcbc 100644 (file)
@@ -147,7 +147,7 @@ function photos_post(App $a)
        $visitor   = 0;
 
        $page_owner_uid = $a->data['user']['uid'];
-       $community_page = $a->data['user']['page-flags'] == PAGE_COMMUNITY;
+       $community_page = $a->data['user']['page-flags'] == Contact::PAGE_COMMUNITY;
 
        if (local_user() && (local_user() == $page_owner_uid)) {
                $can_post = true;
@@ -964,7 +964,7 @@ function photos_content(App $a)
 
        $owner_uid = $a->data['user']['uid'];
 
-       $community_page = (($a->data['user']['page-flags'] == PAGE_COMMUNITY) ? true : false);
+       $community_page = (($a->data['user']['page-flags'] == Contact::PAGE_COMMUNITY) ? true : false);
 
        if (local_user() && (local_user() == $owner_uid)) {
                $can_post = true;