now only removes all gifs is policy is set

This commit is contained in:
seek3r 2002-01-21 19:13:26 +00:00
parent 3b939f5158
commit bd2ca67eb1
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -776,7 +776,7 @@
function find_image($appname,$image) function find_image($appname,$image)
{ {
switch($GLOBALS['phpgw_info']['server']['imgtype_preference']) switch(PHPGW_IMGTYPE_PREF)
{ {
case 1: case 1:
$imgpref = Array('gif','jpg','png'); $imgpref = Array('gif','jpg','png');