From 47ad3507d517778fcc8d7d9a8e8c22881b7e4001 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 6 Dec 2016 07:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BTemplate=E7=B1=BBparseTemplat?= =?UTF-8?q?eFile=E6=96=B9=E6=B3=95?= 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 944bf33d..03137be8 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 = $this->config['view_path']; + $path = isset($module) ? APP_PATH . $module . 'view' . DS : $this->config['view_path']; } $template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.'); }