X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fvideos.php;h=412966f862b7e3138085f9d92679377010054b2d;hb=de4a2e6fd03cd0aab94a256eba92ed593931534b;hp=de9feac06a385a91eb5ad86cc55257847b4cd7b0;hpb=cd7ec72b205ad2e2b177a9a76888e73a065b831c;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index de9feac06a..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,14 +40,7 @@ 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 { - $account_type = ""; - } + $account_type = Contact::getAccountType($profile); $tpl = get_markup_template("vcard-widget.tpl"); @@ -65,8 +65,8 @@ function videos_init(&$a) { $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true); if($albums_visible) { - $o .= '