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]))