mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修正templae类
This commit is contained in:
@@ -775,7 +775,7 @@ class Template
|
||||
$parseStr = $this->parseTemplateName($tmplPublicName);
|
||||
// 替换变量
|
||||
foreach ($vars as $key => $val) {
|
||||
if (strpos($val, '[' . $key . ']')) {
|
||||
if (strpos($parseStr, '[' . $key . ']')) {
|
||||
$parseStr = str_replace('[' . $key . ']', $val, $parseStr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user