修正Template类

This commit is contained in:
thinkphp
2016-12-06 08:13:27 +08:00
parent b7f7a8a2a7
commit 3e53f0f452

View File

@@ -1072,7 +1072,7 @@ class Template
$module = isset($module) ? $module : Request::instance()->module();
$path = $this->config['view_base'] . ($module ? $module . DS : '');
} else {
$path = isset($module) ? APP_PATH . $module . 'view' . DS : $this->config['view_path'];
$path = isset($module) ? APP_PATH . $module . DS . basename($this->config['view_path']) . DS : $this->config['view_path'];
}
$template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.');
}