From 1e409b7ddcf0b673b7dd433833a1ea35486b7bb3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 30 Jan 2016 23:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B8=B2=E6=9F=93=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E8=B7=AF=E5=BE=84=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E6=8F=90=E7=A4=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BF=A1=E6=81=AF=20fixed=20bug=20#253?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/View.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/View.php b/library/think/View.php index 0e02fb02..3a4929f4 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -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);