From 1b4da70ee7385bc7b2f0526c98c2847f08fabe58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=81=E5=AE=81?= Date: Fri, 10 Oct 2014 15:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=EF=BC=88=E6=AF=94=E5=A6=82=E5=8D=87=E7=BA=A7=EF=BC=89?= =?UTF-8?q?=E8=AF=AF=E5=88=A0=E4=BA=86=E7=9A=AE=E8=82=A4=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E8=87=AA=E5=8A=A8=E4=BD=BF=E7=94=A8default=E7=9A=AE?= =?UTF-8?q?=E8=82=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Archive.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 8fe5d1da..58e683ce 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -234,7 +234,10 @@ class Widget_Archive extends Widget_Abstract_Contents } /** 初始化皮肤路径 */ - $this->_themeDir = rtrim($this->options->themeFile($this->options->theme), '/') . '/'; + $this->_themeDir = + rtrim($this->options->themeFile( + is_dir($this->options->themeFile($this->options->theme)) ? + $this->options->theme : 'default'), '/') . '/'; /** 处理feed模式 **/ if ('feed' == $this->parameter->type) {