- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode

- bugfix at new "for" syntax like {for $x=1 to 10 step 2}
This commit is contained in:
Uwe.Tews
2010-02-10 20:51:36 +00:00
parent 9f5d885835
commit cb0ba1908a
4 changed files with 1729 additions and 2592 deletions

View File

@@ -1,5 +1,7 @@
09/02/2010
10/02/2010
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode
- bugfix at new "for" syntax like {for $x=1 to 10 step 2}
09/02/2010
- added $smarty->_tag_stack for tracing block tag hierarchy

View File

@@ -412,7 +412,7 @@ class Smarty_Internal_TemplateCompilerBase {
$line = $this->lex->line;
}
$match = preg_split("/\n/", $this->lex->data);
$error_text = 'Syntax Error in template "' . $this->template->getTemplateFilepath() . '" on line ' . $line . ' "' . $match[$line-1] . '" ';
$error_text = 'Syntax Error in template "' . $this->template->getTemplateFilepath() . '" on line ' . $line . ' "' . htmlspecialchars($match[$line-1]) . '" ';
if (isset($args)) {
// individual error message
$error_text .= $args;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff