]> git.mxchange.org Git - friendica.git/blobdiff - mod/videos.php
Merge pull request #2170 from fabrixxm/issue_1953
[friendica.git] / mod / videos.php
index de9feac06a385a91eb5ad86cc55257847b4cd7b0..7ea09d6a93d419475341a305b978f712b88d6391 100644 (file)
@@ -33,14 +33,10 @@ function videos_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((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
+                       $account_type = t('Forum');
+               else
                        $account_type = "";
-               }
 
                $tpl = get_markup_template("vcard-widget.tpl");
 
@@ -65,7 +61,7 @@ function videos_init(&$a) {
                        $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
 
                        if($albums_visible) {
-                               $o .= '<div id="side-bar-photos-albums" class="widget">';
+                               $o .= '<div id="sidebar-photos-albums" class="widget">';
                                $o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';
 
                                $o .= '<ul>';