X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=3d6a1d4051f1cece7072ea8b4b522ea9e59ed505;hb=f5a1df9201d8e20a74799c61e86b4cdabb459979;hp=97c0fb22e6106e981ba6b2dd5dc5a93d44375b02;hpb=368819685909c0fa027cfee288cce8c40917380c;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 97c0fb22e6..3d6a1d4051 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -714,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'); @@ -1140,10 +1140,6 @@ function photos_content(App $a) '$loading' => DI::l10n()->t('Loading...'), '$qcomment' => $qcomment, '$rand_num' => Crypto::randomDigits(12), - // Dropzone - //'$max_imagesize' => Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')); - // Strings::getBytresFromShorthand not working, so just workaround in template and serve the bare value - '$max_imagesize' => DI::config()->get('system', 'maximagesize'), ]); } } @@ -1199,10 +1195,6 @@ function photos_content(App $a) '$preview' => DI::l10n()->t('Preview'), '$qcomment' => $qcomment, '$rand_num' => Crypto::randomDigits(12), - // Dropzone - //'$max_imagesize' => Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')); - // Strings::getBytresFromShorthand not working, so just workaround in template and serve the bare value - '$max_imagesize' => DI::config()->get('system', 'maximagesize'), ]); } @@ -1277,10 +1269,6 @@ function photos_content(App $a) '$preview' => DI::l10n()->t('Preview'), '$qcomment' => $qcomment, '$rand_num' => Crypto::randomDigits(12), - // Dropzone - //'$max_imagesize' => Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')); - // Strings::getBytresFromShorthand not working, so just workaround in template and serve the bare value - '$max_imagesize' => DI::config()->get('system', 'maximagesize'), ]); } }