X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=3d6a1d4051f1cece7072ea8b4b522ea9e59ed505;hb=f5a1df9201d8e20a74799c61e86b4cdabb459979;hp=50780724ff5c52058d0e3811ec55f200962aa997;hpb=24c32cff0dcd38d5aa509208f5f17abb05a8b140;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 50780724ff..3d6a1d4051 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -62,7 +62,7 @@ function photos_init(App $a) Nav::setSelected('home'); if (DI::args()->getArgc() > 1) { - $owner = User::getOwnerDataByNick(DI::args()->getArgv()[1]); + $owner = Profile::load(DI::app(), DI::args()->getArgv()[1], false); if (!isset($owner['account_removed']) || $owner['account_removed']) { throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.')); } @@ -111,12 +111,6 @@ function photos_init(App $a) ]); } - if (empty(DI::page()['aside'])) { - DI::page()['aside'] = ''; - } - - DI::page()['aside'] .= Widget\VCard::getHTML($owner); - if (!empty($photo_albums_widget)) { DI::page()['aside'] .= $photo_albums_widget; } @@ -720,7 +714,7 @@ function photos_content(App $a) // When PHP is configured with upload_max_filesize less than maximagesize provide this lower limit. $maximagesize_bytes = (is_numeric($mis_bytes) && ($mis_bytes < $umf_bytes) ? $mis_bytes : $umf_bytes); - // @todo We may be want to use appropriate binary prefixed dynamicly + // @todo We may be want to use appropriate binary prefixed dynamically $usage_message = DI::l10n()->t('The maximum accepted image size is %s', Strings::formatBytes($maximagesize_bytes)); $tpl = Renderer::getMarkupTemplate('photos_upload.tpl'); @@ -1145,7 +1139,7 @@ function photos_content(App $a) '$preview' => DI::l10n()->t('Preview'), '$loading' => DI::l10n()->t('Loading...'), '$qcomment' => $qcomment, - '$rand_num' => Crypto::randomDigits(12) + '$rand_num' => Crypto::randomDigits(12), ]); } } @@ -1200,7 +1194,7 @@ function photos_content(App $a) '$submit' => DI::l10n()->t('Submit'), '$preview' => DI::l10n()->t('Preview'), '$qcomment' => $qcomment, - '$rand_num' => Crypto::randomDigits(12) + '$rand_num' => Crypto::randomDigits(12), ]); } @@ -1274,7 +1268,7 @@ function photos_content(App $a) '$submit' => DI::l10n()->t('Submit'), '$preview' => DI::l10n()->t('Preview'), '$qcomment' => $qcomment, - '$rand_num' => Crypto::randomDigits(12) + '$rand_num' => Crypto::randomDigits(12), ]); } }