From fa2c7b3ad2beaa5c8c8e3263d91a6961a32c4e0d 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: Thu, 27 Mar 2025 19:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5bs=E6=8F=90=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/dedealert.func.php | 2 +- src/system/helpers/code.helper.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/dedealert.func.php b/src/system/dedealert.func.php index a686cf1f..dcd82f68 100644 --- a/src/system/dedealert.func.php +++ b/src/system/dedealert.func.php @@ -17,7 +17,7 @@ define('ALERT_WARNING', 5); define('ALERT_INFO', 6); define('ALERT_LIGHT', 7); define('ALERT_DARK', 8); -define("ALERT_TPL", '
~content~
'); +define("ALERT_TPL", '
~content~
'); //$content:文档,$type:alert类型 function DedeAlert($content, $type = ALERT_PRIMARY, $isHTML = false) { diff --git a/src/system/helpers/code.helper.php b/src/system/helpers/code.helper.php index 61f77f9b..e22c0d0d 100644 --- a/src/system/helpers/code.helper.php +++ b/src/system/helpers/code.helper.php @@ -437,7 +437,7 @@ function checkCode($code) function htmlErrors($errors = null) { if ($errors) { - $errorsHTML = "
"; + $errorsHTML = "
"; $errorsHTML .= '内嵌脚本缺失,请添加该函数:'; $errorsHTML .= '
'; foreach ($errors as $error) { @@ -447,7 +447,7 @@ function htmlErrors($errors = null) $errorsHTML .= '
'.$error['name'].'
'; } $errorsHTML .= '
'; - $errorsHTML .= "
\r\n"; + $errorsHTML .= "
"; echo $errorsHTML; } }