X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=a9dade6a81c8e291f4451985f89d889118a47847;hb=1030c5f4b63df897c4cc96880063fc6ff0e56cb6;hp=7ca850bc900c73c34f2f1f11b697f3da6311e8a0;hpb=cd7ec72b205ad2e2b177a9a76888e73a065b831c;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 7ca850bc90..a9dade6a81 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -37,14 +37,10 @@ function photos_init(&$a) { $profile = get_profiledata_by_nick($nick, $a->profile_uid); - if((x($profile['page-flags']) == 1) - || (x($profile['page-flags']) == 2) - || (x($profile['page-flags']) == 5)) { - $account_type = page_type_translate($profile['page-flags']); - } - else { + if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP)) + $account_type = t('Forum'); + else $account_type = ""; - } $tpl = get_markup_template("vcard-widget.tpl");