mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进template类的parseTemplateFile方法 支持读取当前主题
This commit is contained in:
@@ -808,7 +808,7 @@ class Template
|
||||
private function parseTemplateFile($template)
|
||||
{
|
||||
if (false === strpos($template, '.')) {
|
||||
return $this->config['tpl_path'] . $template . $this->config['tpl_suffix'];
|
||||
return (defined('THEME_PATH') && substr_count($template, '/') < 2 ? THEME_PATH : $this->config['tpl_path']) . $template . $this->config['tpl_suffix'];
|
||||
} else {
|
||||
return $template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user