From 8bf6b8667456992b68c0334556211634780f568d Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 22 Jan 2002 04:33:36 +0000 Subject: [PATCH] Change to use phpgw_info for image type selection --- phpgwapi/inc/class.Template.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.Template.inc.php b/phpgwapi/inc/class.Template.inc.php index 3bddc1fb29..dea24c6c44 100644 --- a/phpgwapi/inc/class.Template.inc.php +++ b/phpgwapi/inc/class.Template.inc.php @@ -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; }