X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=0a8dc472d7c5eac89cb3ccd388a29d6b4c38c137;hb=4f6e02357a0cb8f8fdaf8586a3d26783df3fe385;hp=a8b63d12dffd60649f4ee7e6c34b79508d6bee6b;hpb=be2afac60d1108408bfae674b1594aa983d6c254;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index a8b63d12df..0a8dc472d7 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -375,9 +375,7 @@ function photos_post(App $a) $arr['visible'] = 0; $arr['origin'] = 1; - $arr['body'] = '[url=' . DI::baseUrl() . '/photos/' . $user['nickname'] . '/image/' . $photo['resource-id'] . ']' - . '[img]' . DI::baseUrl() . '/photo/' . $photo['resource-id'] . '-' . $photo['scale'] . '.'. $ext . '[/img]' - . '[/url]'; + $arr['body'] = Images::getBBCodeByResource($photo['resource-id'], $user['nickname'], $photo['scale'], $ext); $item_id = Item::insert($arr); } @@ -714,7 +712,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'); @@ -1140,10 +1138,6 @@ function photos_content(App $a) '$loading' => DI::l10n()->t('Loading...'), '$qcomment' => $qcomment, '$rand_num' => Crypto::randomDigits(12), - // Dropzone - //'$max_imagesize' => DI::config()->get('system', 'maximagesize'), - // don't know, if DI::config.. does not work here, so it is set to a manual value - '$max_imagesize' => 100000, ]); } } @@ -1199,10 +1193,6 @@ function photos_content(App $a) '$preview' => DI::l10n()->t('Preview'), '$qcomment' => $qcomment, '$rand_num' => Crypto::randomDigits(12), - // Dropzone - //'$max_imagesize' => DI::config()->get('system', 'maximagesize'), - // don't know, if DI::config.. does not work here, so it is set to a manual value - '$max_imagesize' => 200000 ]); } @@ -1277,10 +1267,6 @@ function photos_content(App $a) '$preview' => DI::l10n()->t('Preview'), '$qcomment' => $qcomment, '$rand_num' => Crypto::randomDigits(12), - // Dropzone - //'$max_imagesize' => DI::config()->get('system', 'maximagesize'), - // don't know, if DI::config.. does not work here, so it is set to a manual value - '$max_imagesize' => 300000 ]); } }