This commit is contained in:
joyqi 2016-01-25 16:58:27 +08:00
parent eca450855e
commit c58a9530b1

View File

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