From c58a9530b16f60a917113b08dc3decafc1655618 Mon Sep 17 00:00:00 2001 From: joyqi Date: Mon, 25 Jan 2016 16:58:27 +0800 Subject: [PATCH] fix #416 --- var/Widget/Archive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 2fc6fcd9..b0e4ec32 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -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);