1
0
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:
Cameron 2020-12-17 09:55:51 -08:00
parent 7580796159
commit b6dbb86c1d
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -1261,7 +1261,7 @@ class xmlClass
if(vartrue($xmlArray['database']))
if(!empty($xmlArray['database']))
{
foreach($xmlArray['database']['dbTable'] as $val)
{