X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fvideos.php;h=412966f862b7e3138085f9d92679377010054b2d;hb=de4a2e6fd03cd0aab94a256eba92ed593931534b;hp=ae00185cca9da11fe03c6352499ea820be86ae16;hpb=89c5989cfb679449fb776df7380e972d0f676d8d;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index ae00185cca..412966f862 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -1,17 +1,24 @@ argc > 1) auto_redir($a, $a->argv[1]); - if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if((Config::get('system','block_public')) && (! local_user()) && (! remote_user())) { return; } @@ -33,18 +40,16 @@ 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']); + $account_type = Contact::getAccountType($profile); $tpl = get_markup_template("vcard-widget.tpl"); $vcard_widget .= replace_macros($tpl, array( - '$name' => $profile[name], - '$photo' => $profile[photo], - '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''), + '$name' => $profile['name'], + '$photo' => $profile['photo'], + '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""), '$account_type' => $account_type, + '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""), )); @@ -60,8 +65,8 @@ function videos_init(&$a) { $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true); if($albums_visible) { - $o .= '