]> git.mxchange.org Git - friendica-addons.git/commitdiff
[forumdirectory] Move Contact::PAGE_* constants to User::PAGE_FLAGS_*
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Jan 2019 04:38:21 +0000 (23:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Jan 2019 04:38:21 +0000 (23:38 -0500)
forumdirectory/forumdirectory.php

index 0e2f0fe30377cf4fe1759c541ccba58f7990b8d6..24cb70e324c4c3ae9331f956fda976fa7c8f84ce 100644 (file)
@@ -15,8 +15,8 @@ use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
-use Friendica\Model\Contact;
 use Friendica\Model\Profile;
+use Friendica\Model\User;
 use Friendica\Util\Strings;
 use Friendica\Util\Temporal;
 
@@ -165,11 +165,11 @@ function forumdirectory_content(App $a)
                        }
 
                        switch ($rr['page-flags']) {
-                               case Contact::PAGE_NORMAL   : $page_type = "Personal Profile"; break;
-                               case Contact::PAGE_SOAPBOX  : $page_type = "Fan Page"        ; break;
-                               case Contact::PAGE_COMMUNITY: $page_type = "Community Forum" ; break;
-                               case Contact::PAGE_FREELOVE : $page_type = "Open Forum"      ; break;
-                               case Contact::PAGE_PRVGROUP : $page_type = "Private Group"   ; break;
+                               case User::PAGE_FLAGS_NORMAL   : $page_type = "Personal Profile"; break;
+                               case User::PAGE_FLAGS_SOAPBOX  : $page_type = "Fan Page"        ; break;
+                               case User::PAGE_FLAGS_COMMUNITY: $page_type = "Community Forum" ; break;
+                               case User::PAGE_FLAGS_FREELOVE : $page_type = "Open Forum"      ; break;
+                               case User::PAGE_FLAGS_PRVGROUP : $page_type = "Private Group"   ; break;
                        }
 
                        $profile = $rr;