From a6a3d572e76fa1c8d8a897405b56102ec6178138 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 26 Apr 2016 19:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Controller=E7=B1=BB=E7=9A=84e?= =?UTF-8?q?ngine=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Controller.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/think/Controller.php b/library/think/Controller.php index d43c8727..d85d62c9 100644 --- a/library/think/Controller.php +++ b/library/think/Controller.php @@ -122,13 +122,12 @@ class Controller /** * 初始化模板引擎 * @access protected - * @param string $engine 引擎名称 - * @param array $config 引擎参数 + * @param array|string $engine 引擎参数 * @return void */ - public function engine($engine, $config = []) + public function engine($engine) { - $this->view->engine($engine, $config); + $this->view->engine($engine); } /**