]> git.mxchange.org Git - friendica.git/blobdiff - include/identity.php
Merge pull request #2853 from annando/1610-bugfix-config
[friendica.git] / include / identity.php
index def50a98fc560316632d1814a972bbc74bd35682..b3dbea8fc6ab860974fdf06f58e13919d04ac31a 100644 (file)
@@ -310,15 +310,8 @@ function profile_sidebar($profile, $block = 0) {
                );
        }
 
-       // check if profile is a forum
-       if((intval($profile['page-flags']) == PAGE_COMMUNITY)
-                       || (intval($profile['page-flags']) == PAGE_PRVGROUP)
-                       || (isset($profile['forum']) && intval($profile['forum']))
-                       || (isset($profile['prv']) && intval($profile['prv']))
-                       || (isset($profile['community']) && intval($profile['community'])))
-               $account_type = t('Forum');
-       else
-               $account_type = "";
+       // Fetch the account type
+       $account_type = account_type($profile);
 
        if((x($profile,'address') == 1)
                        || (x($profile,'location') == 1)