mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Made exception msgs exactly the same again, fixing some unit tests
This commit is contained in:
@@ -72,7 +72,7 @@ class BlockCompiler extends Base {
|
|||||||
|
|
||||||
if (!isset($compiler->_cache['blockNesting'])) {
|
if (!isset($compiler->_cache['blockNesting'])) {
|
||||||
$compiler->trigger_template_error(
|
$compiler->trigger_template_error(
|
||||||
"{\$smarty.block.child} used outside {block} tags ",
|
"'{\$smarty.block.child}' used outside {block} tags ",
|
||||||
$compiler->getParser()->lex->taglineno
|
$compiler->getParser()->lex->taglineno
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -97,7 +97,7 @@ class BlockCompiler extends Base {
|
|||||||
|
|
||||||
if (!isset($compiler->_cache['blockNesting'])) {
|
if (!isset($compiler->_cache['blockNesting'])) {
|
||||||
$compiler->trigger_template_error(
|
$compiler->trigger_template_error(
|
||||||
"{\$smarty.block.parent} used outside {block} tags ",
|
"'{\$smarty.block.parent}' used outside {block} tags ",
|
||||||
$compiler->getParser()->lex->taglineno
|
$compiler->getParser()->lex->taglineno
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user