mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修复php标签合并时输出标签间的空格也被合并的bug
This commit is contained in:
@@ -332,7 +332,7 @@ class Template
|
||||
$content = preg_replace($find, $replace, $content);
|
||||
}
|
||||
// 优化生成的php代码
|
||||
$content = preg_replace('/\?>\s*<\?php\s?/is', '', $content);
|
||||
$content = preg_replace('/\?>\s*<\?php\s(?!echo\b)/s', '', $content);
|
||||
// 模板过滤输出
|
||||
$replace = $this->config['tpl_replace_string'];
|
||||
$content = str_replace(array_keys($replace), array_values($replace), $content);
|
||||
|
||||
Reference in New Issue
Block a user