mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Issue #4270 - Admin-UI: WebP support when rendering 'type'=>'image'
This commit is contained in:
parent
7580796159
commit
b6dbb86c1d
@ -5164,7 +5164,7 @@ var_dump($select_options);*/
|
||||
|
||||
$fileOnly = basename($value);
|
||||
// Not an image but a file. (media manager)
|
||||
if(!preg_match("/\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF)$/", $fileOnly) && false !== strpos($fileOnly,'.'))
|
||||
if(!preg_match("/\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP)$/", $fileOnly) && false !== strpos($fileOnly,'.'))
|
||||
{
|
||||
$icon = "{e_IMAGE}filemanager/zip_32.png";
|
||||
$src = $tp->replaceConstants(vartrue($parms['pre']).$icon, 'abs');
|
||||
|
@ -1261,7 +1261,7 @@ class xmlClass
|
||||
|
||||
|
||||
|
||||
if(vartrue($xmlArray['database']))
|
||||
if(!empty($xmlArray['database']))
|
||||
{
|
||||
foreach($xmlArray['database']['dbTable'] as $val)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user