Skip to content

Commit

Permalink
Merge branch '3.0' of github.com:top-think/think-template into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Aug 13, 2024
2 parents 1f012fc + 5ffdfab commit af703e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1192,15 +1192,15 @@ private function parseTemplateName(string $templateName): string
$parseStr = '';

foreach ($array as $templateName) {
if (empty($templateName)) {
continue;
}

if (str_starts_with($templateName, '$')) {
//支持加载变量文件名
$templateName = $this->get(substr($templateName, 1));
}

if (empty($templateName)) {
continue;
}

$template = $this->parseTemplateFile($templateName);

if ($template) {
Expand Down

0 comments on commit af703e2

Please sign in to comment.