mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Allow SVG and WebP image uploads in layout configuration
This commit is contained in:
parent
cac0ea171c
commit
bbcbe04838
3 changed files with 3 additions and 3 deletions
|
|
@ -897,7 +897,7 @@ class LayoutAdminController extends Layout
|
|||
return;
|
||||
}
|
||||
|
||||
if(!preg_match('/\.(jpg|jpeg|gif|png)$/i', $img['name']))
|
||||
if(!preg_match('/\.(gif|jpe?g|png|svg|webp)$/i', $img['name']))
|
||||
{
|
||||
Context::set('msg', lang('msg_layout_image_target'));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue