display thumbnail now for images up to 1.6M, which seem to work with our current recommended memory_limit of 128M

This commit is contained in:
Ralf Becker 2012-10-30 16:48:07 +00:00
parent 10e2e6556a
commit 1da2374c88

View File

@ -323,7 +323,7 @@ class vfs_widget
(string)$GLOBALS['egw_info']['server']['link_list_thumbnail'] != '0' &&
(string)$GLOBALS['egw_info']['user']['preferences']['common']['link_list_thumbnail'] != '0' &&
// check the size of the image, as too big images get no icon, but a PHP Fatal error: Allowed memory size exhausted
(!is_array($value) && ($stat = egw_vfs::stat($path)) ? $stat['size'] : $value['size']) < 600000)
(!is_array($value) && ($stat = egw_vfs::stat($path)) ? $stat['size'] : $value['size']) < 1600000)
{
if (substr($path,0,6) == '/apps/')
{