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
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 74 B |
Before Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 75 B |
Before Width: | Height: | Size: 62 B |
Before Width: | Height: | Size: 72 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 62 B |
Before Width: | Height: | Size: 69 B |
Before Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 73 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 62 B |
Before Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 61 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 55 B |
Before Width: | Height: | Size: 850 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 62 B |
Before Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 77 B |
Before Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 61 B |
@ -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->JPG->PNG</option>
|
|
||||||
<option value="1"{selected_image_type_1}>PNG->JPG->GIF</option>
|
|
||||||
<option value="2"{selected_image_type_2}>PNG->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">
|
||||||
|