mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 17:39:42 +01:00
fix #416
This commit is contained in:
parent
eca450855e
commit
c58a9530b1
@ -1369,7 +1369,7 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
|
||||
/** 初始化皮肤函数 */
|
||||
$functionsFile = $this->_themeDir . 'functions.php';
|
||||
if (!$this->_invokeFromOutside && file_exists($functionsFile)) {
|
||||
if ((!$this->_invokeFromOutside || $this->parameter->type == 404) && file_exists($functionsFile)) {
|
||||
require_once $functionsFile;
|
||||
if (function_exists('themeInit')) {
|
||||
themeInit($this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user