From 3c9a76a85b985fd1ceabd9e420e85bac75e737ab Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 13 Dec 2015 21:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/url.php | 2 +- library/think/view/driver/think.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/url.php b/library/think/url.php index 543d83e9..01d67d14 100644 --- a/library/think/url.php +++ b/library/think/url.php @@ -75,7 +75,7 @@ class Url } } - if (isset($anchor)) { + if (!empty($anchor)) { $url .= '#' . $anchor; } if ($domain) { diff --git a/library/think/view/driver/think.php b/library/think/view/driver/think.php index 19bee076..dc38764b 100644 --- a/library/think/view/driver/think.php +++ b/library/think/view/driver/think.php @@ -21,10 +21,10 @@ class Think $this->template = new Template($config); } - public function fetch($template, $data = [], $cacheId = '') + public function fetch($template, $data = [], $cache = []) { if (is_file($template)) { - $this->template->display($template, $data, $cacheId); + $this->template->display($template, $data, $cache); } else { $this->template->fetch($template, $data); }