mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进驱动命名空间检测
This commit is contained in:
@@ -70,7 +70,7 @@ class Template
|
||||
|
||||
// 初始化模板编译存储器
|
||||
$type = $this->config['compile_type'] ? $this->config['compile_type'] : 'File';
|
||||
$class = strpos($type, '\\') ? $type : '\\think\\template\\driver\\' . ucwords($type);
|
||||
$class = false !== strpos($type, '\\') ? $type : '\\think\\template\\driver\\' . ucwords($type);
|
||||
$this->storage = new $class();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user