mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 17:39:42 +01:00
Add svg to image types
This commit is contained in:
parent
b28d5b7bab
commit
4c1c42ad40
@ -554,7 +554,7 @@ class Contents extends Base implements QueryInterface
|
||||
|
||||
//增加数据信息
|
||||
$value['attachment'] = new Config($content);
|
||||
$value['attachment']->isImage = in_array($content['type'], ['jpg', 'jpeg', 'gif', 'png', 'tiff', 'bmp', 'webp', 'avif']);
|
||||
$value['attachment']->isImage = in_array($content['type'], ['jpg', 'jpeg', 'gif', 'png', 'tiff', 'bmp', 'webp', 'avif', 'svg']);
|
||||
$value['attachment']->url = Upload::attachmentHandle($value);
|
||||
|
||||
if ($value['attachment']->isImage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user