Cherry-picked from da76d927ed

Co-Authored-By: Thomas BACCELLI <tbaccelli@gmail.com>
This commit is contained in:
Thomas A. Hirsch
2022-01-18 13:57:58 +01:00
parent cdf0f2b164
commit 8d3a7af308
9 changed files with 14 additions and 13 deletions

View File

@@ -1135,7 +1135,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
flush();
}
$e = new SmartyCompilerException($error_text);
$e->line = $line;
$e->setLine($line);
$e->source = trim(preg_replace('![\t\r\n]+!', ' ', $match[ $line - 1 ]));
$e->desc = $args;
$e->template = $this->template->source->filepath;