Merge pull request #790 from MrPetovan/task/6390-move-contact-constants-to-user

[forumdirectory] Move Contact::PAGE_* constants to User::PAGE_FLAGS_*
This commit is contained in:
Tobias Diekershoff 2019-02-02 09:19:54 +01:00 committed by GitHub
commit 3e202f8ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -15,8 +15,8 @@ use Friendica\Core\Hook;
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;
@ -161,11 +161,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;