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; } }