remove configurable image-type preference in favor to hardcoded one always prefering png over gif, also removed all .gif images which have a png counterpart

This commit is contained in:
Ralf Becker 2013-12-05 02:04:59 +00:00
parent 0290622da1
commit 1ee480eaa3
58 changed files with 4 additions and 24 deletions

View File

@ -817,7 +817,7 @@ class common
* Scan filesystem for images of all apps * Scan filesystem for images of all apps
* *
* For each application and image-name (without extension) one full path is returned. * For each application and image-name (without extension) one full path is returned.
* The path takes template-set and image-type-priority ($GLOBALS['egw_info']['server']['image_type']) into account. * The path takes template-set and image-type-priority (now fixed to: png, jpg, gif, ico) into account.
* *
* VFS image directory is treated like an application named 'vfs'. * VFS image directory is treated like an application named 'vfs'.
* *
@ -836,16 +836,8 @@ class common
} }
$starttime = microtime(true); $starttime = microtime(true);
if (!$GLOBALS['egw_info']['server']['image_type']) // priority: : PNG->JPG->GIF
{ $img_types = array('png','jpg','gif','ico');
// priority: GIF->JPG->PNG
$img_types = array('gif','jpg','png','ico');
}
else
{
// priority: : PNG->JPG->GIF
$img_types = array('png','jpg','gif','ico');
}
$map = array(); $map = array();
foreach(scandir(EGW_SERVER_ROOT) as $app) foreach(scandir(EGW_SERVER_ROOT) as $app)
{ {

View File

@ -159,7 +159,6 @@ foreach(array(
foreach(array( foreach(array(
'sessions_checkip' => 'True', 'sessions_checkip' => 'True',
'image_type' => '1',
'asyncservice' => 'fallback', 'asyncservice' => 'fallback',
'install_id' => md5(microtime(true).common::randomstring(15)), 'install_id' => md5(microtime(true).common::randomstring(15)),
) as $name => $value) ) as $name => $value)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 B

View File

@ -75,17 +75,6 @@
</td> </td>
</tr> </tr>
<tr class="row_on">
<td>{lang_Image_type_selection_order}:</td>
<td>
<select name="newsettings[image_type]">
<option value="">GIF-&gt;JPG-&gt;PNG</option>
<option value="1"{selected_image_type_1}>PNG-&gt;JPG-&gt;GIF</option>
<option value="2"{selected_image_type_2}>PNG-&gt;JPG</option>
</select>
</td>
</tr>
<tr class="row_on"> <tr class="row_on">
<td>{lang_Complete_path_to_aspell_program}:</td> <td>{lang_Complete_path_to_aspell_program}:</td>
<td> <td>
@ -510,7 +499,7 @@
<option value="">{lang_No}</option> <option value="">{lang_No}</option>
<option value="tls"{selected_ads_connection_tls}>TLS</option> <option value="tls"{selected_ads_connection_tls}>TLS</option>
<option value="ssl"{selected_ads_connection_ssl}>SSL</option> <option value="ssl"{selected_ads_connection_ssl}>SSL</option>
</select> </select>
</td> </td>
</tr> </tr>
<tr class="row_on"> <tr class="row_on">