mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:51 +01:00
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:
parent
529c392557
commit
14f690549c
@ -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/')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user