From 87d9f5e4149beeba629a5a2748a368c34d298cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Fri, 28 Mar 2025 11:56:13 +0800 Subject: [PATCH] Update extend.func.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改静态发布错误提示,支持动态自动lat功能 --- src/system/extend.func.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/system/extend.func.php b/src/system/extend.func.php index ff7b2c03..b9521bda 100755 --- a/src/system/extend.func.php +++ b/src/system/extend.func.php @@ -61,14 +61,17 @@ function obtainalt($newalt) global $dsql, $id, $aid; $myid = isset($id) ? $id : $aid; $row = $dsql->GetOne("SELECT title FROM `#@__archives` WHERE id='$myid'"); - //图片注释自动为标题 - $newalt = str_ireplace(array('alt=""', 'alt=\'\'', 'title=""', 'title=\'\''), "", $newalt); - $newalt = str_ireplace("