diff --git a/engine/Engine.php b/engine/Engine.php index 381cb0c..e02c746 100644 --- a/engine/Engine.php +++ b/engine/Engine.php @@ -142,10 +142,10 @@ class Engine /** * 检测是否含有include - * @param $template + * @param &$template * @return bool */ - private function hasInclude($template) + private function hasInclude(&$template) { $pattern = '/' . $this->left . 'include\s+file[\s\S]*?=[\s\S]*?[\'"](.*?)[\'"][\s\S]*?\/' . $this->right . '/is'; preg_match($pattern, $template, $matches);