Change default back to gif, change switch value to phpgw_info element for config later

This commit is contained in:
Miles Lott 2002-01-22 04:30:51 +00:00
parent bd2ca67eb1
commit 1918905b1c

View File

@ -776,16 +776,16 @@
function find_image($appname,$image)
{
switch(PHPGW_IMGTYPE_PREF)
switch($GLOBALS['phpgw_info']['server']['image_type'])
{
case 1:
$imgpref = Array('gif','jpg','png');
$imgpref = Array('png','jpg','gif');
break;
case 2:
$imgpref = Array('png','jpg','nogifs');
break;
default:
$imgpref = Array('png','jpg','gif');
$imgpref = Array('gif','jpg','png');
}
if (!@is_array($this->found_files[$appname]))