Change to use phpgw_info for image type selection

This commit is contained in:
Miles Lott 2002-01-22 04:33:36 +00:00
parent 1918905b1c
commit 8bf6b86674

View File

@ -334,9 +334,9 @@
break;
}
/* If they want NOGIF policy, then I do a global replace */
if (PHPGW_IMGTYPE_PREF == 2)
if ($GLOBALS['phpgw_info']['server']['image_type'] == 2)
{
$str = str_replace (".gif", ".png",$str);
$str = str_replace ('.gif', '.png',$str);
}
return $str;
}