- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php

- bugfix {$smarty.now} did compile incorrectly
- bugfix on reset(),end(),next(),prev(),current() within tempaltes
This commit is contained in:
uwe.tews@googlemail.com
2010-11-16 21:06:46 +00:00
parent ef85c9f2ad
commit db8867cd88
4 changed files with 177 additions and 156 deletions
@@ -33,7 +33,8 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
case 'capture':
return "Smarty::\$_smarty_vars$parameter";
case 'now':
return 'time()';
// the '#' below is not a bug, its a flag for the parser not to us isset() on the return
return '#time()';
case 'cookies':
if (isset($compiler->smarty->security_policy) && !$compiler->smarty->security_policy->allow_super_globals) {
$compiler->trigger_template_error("(secure mode) super globals not permitted");