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); }