mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Change default back to gif, change switch value to phpgw_info element for config later
This commit is contained in:
parent
bd2ca67eb1
commit
1918905b1c
@ -776,16 +776,16 @@
|
|||||||
|
|
||||||
function find_image($appname,$image)
|
function find_image($appname,$image)
|
||||||
{
|
{
|
||||||
switch(PHPGW_IMGTYPE_PREF)
|
switch($GLOBALS['phpgw_info']['server']['image_type'])
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
$imgpref = Array('gif','jpg','png');
|
$imgpref = Array('png','jpg','gif');
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$imgpref = Array('png','jpg','nogifs');
|
$imgpref = Array('png','jpg','nogifs');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$imgpref = Array('png','jpg','gif');
|
$imgpref = Array('gif','jpg','png');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!@is_array($this->found_files[$appname]))
|
if (!@is_array($this->found_files[$appname]))
|
||||||
|
Loading…
Reference in New Issue
Block a user