mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Issue #4270 - Admin-UI: WebP support when rendering 'type'=>'image'
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user