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:45 +00:00
parent 529c392557
commit 14f690549c

View File

@ -315,7 +315,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/')
{