From 4095850140c408622a07eca9674232cad0112f55 Mon Sep 17 00:00:00 2001 From: Kane Date: Tue, 14 Jun 2022 18:57:07 +0800 Subject: [PATCH] Minor update (#1460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 后台上传设置增加 avif 类型 - 后台 Avatar 头像支持原生懒加载 --- var/Widget/Base/Comments.php | 2 +- var/Widget/Options/General.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/var/Widget/Base/Comments.php b/var/Widget/Base/Comments.php index 05a52701..2a4d0fac 100644 --- a/var/Widget/Base/Comments.php +++ b/var/Widget/Base/Comments.php @@ -289,7 +289,7 @@ class Comments extends Base implements QueryInterface Comments::pluginHandle()->trigger($plugged)->gravatar($size, $rating, $default, $this); if (!$plugged) { $url = Common::gravatarUrl($this->mail, $size, $rating, $default, $this->request->isSecure()); - echo '' .
+                echo '<img class='; } } diff --git a/var/Widget/Options/General.php b/var/Widget/Options/General.php index 0b8fde9a..52c7971a 100644 --- a/var/Widget/Options/General.php +++ b/var/Widget/Options/General.php @@ -272,7 +272,7 @@ class General extends Options implements ActionInterface } $attachmentTypesOptions = [ - '@image@' => _t('图片文件') . ' (gif jpg jpeg png tiff bmp webp)', + '@image@' => _t('图片文件') . ' (gif jpg jpeg png tiff bmp webp avif)', '@media@' => _t('多媒体文件') . ' (mp3 mp4 mov wmv wma rmvb rm avi flv ogg oga ogv)', '@doc@' => _t('常用档案文件') . ' (txt doc docx xls xlsx ppt pptx zip rar pdf)', '@other@' => _t(