mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Hero cleanup for Bootstrap5. Switched to placeholder images. Admin-ui type 'image' now loads remote URLs correctly.
This commit is contained in:
@@ -5537,8 +5537,9 @@ var_dump($select_options);*/
|
||||
}
|
||||
|
||||
$fileOnly = basename($value);
|
||||
|
||||
// Not an image but a file. (media manager)
|
||||
if(!preg_match("/\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP)$/", $fileOnly) && strpos($fileOnly,'.') !== false)
|
||||
if(!preg_match("/\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP)/", $fileOnly) && strpos($fileOnly,'.') !== false)
|
||||
{
|
||||
$icon = '{e_IMAGE}filemanager/zip_32.png';
|
||||
$src = $tp->replaceConstants(vartrue($parms['pre']).$icon, 'abs');
|
||||
|
Reference in New Issue
Block a user