diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-14 16:01:49 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-14 16:01:49 +0800 |
| commit | 0615f62964b26f5d2f54da3c9262a1ea17df41ce (patch) | |
| tree | a88fa7033911be612d12c635fd14b514c3290c60 /functions.php | |
| parent | d75331d8b8816f0806ca324b550483cbadaf656f (diff) | |
:poop: Fix: 自定义随机图失效
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 796a4f2..8e62dce 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,8 @@ -<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> -<?php +<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; +/** + * Miracles 核心文件 + */ + require_once("themeConfig.php"); require_once("libs/Utils.php"); require_once("libs/Contents.php"); @@ -25,7 +28,9 @@ function themeInit($archive) { Helper::options()->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; } /** |
