]> git.mxchange.org Git - friendica.git/blobdiff - mod/videos.php
Merge pull request #1947 from annando/1510-diaspora-follower
[friendica.git] / mod / videos.php
index 943a9d09f2bf7ca07cc935022d5e2c329b6706cc..a7d48cb751200fc47dac47e1f75fa71733f535b6 100644 (file)
@@ -15,6 +15,8 @@ function videos_init(&$a) {
                return;
        }
 
+       nav_set_selected('home');
+
        $o = '';
 
        if($a->argc > 1) {
@@ -27,15 +29,16 @@ function videos_init(&$a) {
                        return;
 
                $a->data['user'] = $r[0];
+               $a->profile_uid = $r[0]['uid'];
 
-                $profilephoto = $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg');
+               $profilephoto = $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg');
 
-                $tpl = get_markup_template("vcard-widget.tpl");
+               $tpl = get_markup_template("vcard-widget.tpl");
 
                $vcard_widget = replace_macros($tpl, array(
-                        '$name' => $a->data['user']['username'],
-                        '$photo' => $profilephoto
-                ));
+                       '$name' => $a->data['user']['username'],
+                       '$photo' => $profilephoto
+               ));
 
 
                /*$sql_extra = permissions_sql($a->data['user']['uid']);