mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正View类的getTemplateTheme方法
This commit is contained in:
@@ -245,7 +245,7 @@ class View
|
|||||||
} elseif (Cookie::get('think_theme')) {
|
} elseif (Cookie::get('think_theme')) {
|
||||||
$theme = Cookie::get('think_theme');
|
$theme = Cookie::get('think_theme');
|
||||||
}
|
}
|
||||||
if (!is_dir(APP_PATH . (APP_MULTI_MODULE ? $module . DS : '') . $this->config['view_layer'] . DS . $theme)) {
|
if (!isset($theme) || !is_dir(APP_PATH . (APP_MULTI_MODULE ? $module . DS : '') . $this->config['view_layer'] . DS . $theme)) {
|
||||||
$theme = $this->config['default_theme'];
|
$theme = $this->config['default_theme'];
|
||||||
}
|
}
|
||||||
Cookie::set('think_theme', $theme, 864000);
|
Cookie::set('think_theme', $theme, 864000);
|
||||||
|
|||||||
Reference in New Issue
Block a user