From 1918905b1c680f4941d76183e9d6dd918f3257b4 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 22 Jan 2002 04:30:51 +0000 Subject: [PATCH] Change default back to gif, change switch value to phpgw_info element for config later --- phpgwapi/inc/class.common.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 353ef51bce..952f7c0dad 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -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]))