X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fvideos.php;h=89097f5cde3f4a4cb6e5792b8a5bb3d1b9f2e546;hb=c41aaf8a17405e4e11366fec14519994612744b1;hp=a3344a8b4300d2c04550489c35f07a286bb55a7c;hpb=89b3ae26578c92a3ebed35425d58277c24d2cb28;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index a3344a8b43..89097f5cde 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -1,6 +1,6 @@ data['user'] = $user[0]; $a->profile_uid = $user[0]['uid']; - $profile = Profile::getByNickname($nick, $a->profile_uid); + $profile = User::getOwnerDataByNick($nick); $account_type = Contact::getAccountType($profile); @@ -126,7 +125,7 @@ function videos_content(App $a) if (DI::config()->get('system', 'block_public') && !Session::isAuthenticated()) { - notice(DI::l10n()->t('Public access denied.') . EOL); + notice(DI::l10n()->t('Public access denied.')); return; } @@ -179,7 +178,7 @@ function videos_content(App $a) } if ($a->data['user']['hidewall'] && (local_user() != $owner_uid) && !$remote_contact) { - notice(DI::l10n()->t('Access to this item is restricted.') . EOL); + notice(DI::l10n()->t('Access to this item is restricted.')); return; }