From 0615f62964b26f5d2f54da3c9262a1ea17df41ce Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Tue, 14 Jul 2020 16:01:49 +0800 Subject: =?UTF-8?q?:poop:=20Fix:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=E5=9B=BE=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 796a4f2..8e62dce 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,8 @@ - -commentsMaxNestingLevels = '9999';//最大嵌套层数 Helper::options()->commentsPageDisplay = 'first';//强制评论第一页 Helper::options()->commentsOrder = 'DESC';//将最新的评论展示在前 - Helper::options()->commentsCheckReferer = false;//关闭检查评论来源URL与文章链接是否一致判断(否则会无法评论) + Helper::options()->commentsCheckReferer = false;//关闭检查评论来源URL与文章链接是否一致判断(否则会无法评论) + //将设置储存到全局变量以便使用 + $GLOBALS['miraclesOptions_randomBanner'] = Helper::options()->randomBanner; } /** -- cgit v1.2.3