From 3e53f0f4529014ae3bd6812af4054172f5133989 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 6 Dec 2016 08:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Template=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Template.php b/library/think/Template.php index 03137be8..e73bbcf8 100644 --- a/library/think/Template.php +++ b/library/think/Template.php @@ -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'], '.'); }