mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
改进驱动命名空间检测
This commit is contained in:
@@ -83,7 +83,7 @@ class View
|
||||
$type = !empty($options['type']) ? $options['type'] : 'Think';
|
||||
}
|
||||
|
||||
$class = strpos($type, '\\') ? $type : '\\think\\view\\driver\\' . ucfirst($type);
|
||||
$class = false !== strpos($type, '\\') ? $type : '\\think\\view\\driver\\' . ucfirst($type);
|
||||
if (isset($options['type'])) {
|
||||
unset($options['type']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user