- bugfix variable file names at {extends} had been disbabled by mistake with the rewrite of

template inheritance of 24.08.2013   (forum topic 24585)
This commit is contained in:
Uwe.Tews@googlemail.com
2013-10-04 08:47:46 +00:00
parent 655a2d9301
commit 51453d196b
2 changed files with 4 additions and 7 deletions

View File

@@ -1,4 +1,8 @@
===== trunk =====
04.10.2013
- bugfix variable file names at {extends} had been disbabled by mistake with the rewrite of
template inheritance of 24.08.2013 (forum topic 24585)
03.10.2013
- bugfix loops using modifier capitalize did eat up memory (issue 159)

View File

@@ -50,13 +50,6 @@ class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase
if (strpos($_attr['file'], '$_tmp') !== false) {
$compiler->trigger_template_error('illegal value for file attribute', $compiler->lex->taglineno);
}
// add tag to call parent template at the end of source
if ($compiler->has_variable_string || !((substr_count($_attr['file'], '"') == 2 || substr_count($_attr['file'], "'") == 2))
|| substr_count($_attr['file'], '(') != 0 || substr_count($_attr['file'], '$_smarty_tpl->') != 0
) {
$compiler->trigger_template_error('variable template file name not allowed', $compiler->lex->taglineno);
}
$name = trim($_attr['file'],"\"'");
// create template object