From ea2be95a64fbae78e3e88b30519498be0e59c5bf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 2 Jan 2018 12:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BView=E7=B1=BB?= 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 023eaf5b..ca2dadbb 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -158,7 +158,7 @@ class View try { $method = $renderContent ? 'display' : 'fetch'; // 允许用户自定义模板的字符串替换 - $replace = array_merge($this->replace, $replace, $this->engine->config('tpl_replace_string')); + $replace = array_merge($this->replace, $replace, (array) $this->engine->config('tpl_replace_string')); $this->engine->config('tpl_replace_string', $replace); $this->engine->$method($template, $vars, $config); } catch (\Exception $e) {