mirror of
https://github.com/friendica/friendica
synced 2024-12-23 18:00:17 +00:00
Merge pull request #2183 from rabuzarus/1412_profile_addr_fix
fix displaying forum in hcard
This commit is contained in:
commit
7a5ac4490d
3 changed files with 7 additions and 7 deletions
|
@ -287,11 +287,11 @@ if(! function_exists('profile_sidebar')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if profile is a forum
|
// check if profile is a forum
|
||||||
if((x($profile['page-flags']) == 2)
|
if((intval($profile['page-flags']) == PAGE_COMMUNITY)
|
||||||
|| (x($profile['page-flags']) == 5)
|
|| (intval($profile['page-flags']) == PAGE_PRVGROUP)
|
||||||
|| (x($profile['forum']))
|
|| (intval($profile['forum']))
|
||||||
|| (x($profile['prv']))
|
|| (intval($profile['prv']))
|
||||||
|| (x($profile['community'])))
|
|| (intval($profile['community'])))
|
||||||
$account_type = t('Forum');
|
$account_type = t('Forum');
|
||||||
else
|
else
|
||||||
$account_type = "";
|
$account_type = "";
|
||||||
|
|
|
@ -37,7 +37,7 @@ function photos_init(&$a) {
|
||||||
|
|
||||||
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
|
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
|
||||||
|
|
||||||
if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
|
if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP))
|
||||||
$account_type = t('Forum');
|
$account_type = t('Forum');
|
||||||
else
|
else
|
||||||
$account_type = "";
|
$account_type = "";
|
||||||
|
|
|
@ -33,7 +33,7 @@ function videos_init(&$a) {
|
||||||
|
|
||||||
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
|
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
|
||||||
|
|
||||||
if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
|
if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP))
|
||||||
$account_type = t('Forum');
|
$account_type = t('Forum');
|
||||||
else
|
else
|
||||||
$account_type = "";
|
$account_type = "";
|
||||||
|
|
Loading…
Reference in a new issue