mirror of
https://github.com/typecho/typecho.git
synced 2025-02-16 18:54:38 +01:00
当某些情况下(比如升级)误删了皮肤目录,自动使用default皮肤
This commit is contained in:
parent
19251770fd
commit
1b4da70ee7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user