From f1f3874780c568d89dace6d35cd1549aa076f629 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Fri, 20 Jan 2023 23:45:27 +0100 Subject: [PATCH] Made exception msgs exactly the same again, fixing some unit tests --- src/Compile/BlockCompiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compile/BlockCompiler.php b/src/Compile/BlockCompiler.php index 63849c41..0807f077 100644 --- a/src/Compile/BlockCompiler.php +++ b/src/Compile/BlockCompiler.php @@ -72,7 +72,7 @@ class BlockCompiler extends Base { if (!isset($compiler->_cache['blockNesting'])) { $compiler->trigger_template_error( - "{\$smarty.block.child} used outside {block} tags ", + "'{\$smarty.block.child}' used outside {block} tags ", $compiler->getParser()->lex->taglineno ); } @@ -97,7 +97,7 @@ class BlockCompiler extends Base { if (!isset($compiler->_cache['blockNesting'])) { $compiler->trigger_template_error( - "{\$smarty.block.parent} used outside {block} tags ", + "'{\$smarty.block.parent}' used outside {block} tags ", $compiler->getParser()->lex->taglineno ); }