From 194387daa05f61a9b7809027054f9bba51340044 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 2 Jan 2016 20:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bview=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/view.php b/library/think/view.php index d3503fc9..ef61044e 100644 --- a/library/think/view.php +++ b/library/think/view.php @@ -276,7 +276,7 @@ class View $tmplPath = $this->config['view_path']; // 模块设置独立的视图目录 if (!$tmplPath) { // 定义TMPL_PATH 则改变全局的视图目录到模块之外 - $tmplPath = defined('TMPL_PATH') ? TMPL_PATH . $module . '/' : APP_PATH . $module . '/' . $this->config['view_layer'] . '/'; + $tmplPath = defined('TMPL_PATH') ? TMPL_PATH . $module . '/' : APP_PATH . ($module ? $module . '/' : '') . $this->config['view_layer'] . '/'; } return $tmplPath . $theme; }