修正渲染完整路径模板文件不存在的提示文件信息 fixed bug #253

This commit is contained in:
thinkphp
2016-01-30 23:35:54 +08:00
parent 5fda023980
commit 1e409b7ddc

View File

@@ -208,6 +208,9 @@ class View
if (is_file($template)) {
return realpath($template);
}
if (strpos($template, $this->config['view_suffix'])) {
return $template;
}
$depr = $this->config['view_depr'];
$template = str_replace(['/', ':'], $depr, $template);