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