- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289)

This commit is contained in:
uwe.tews@googlemail.com
2012-02-19 18:53:10 +00:00
parent d0ad3df670
commit e134e54820
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
19.02.2012 19.02.2012
- bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags - bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags
(reported by mh and Issue 83) (reported by mh and Issue 83)
- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289)
07.02.2012 07.02.2012
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996) - bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)

View File

@@ -62,6 +62,9 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
case 'template': case 'template':
return 'basename($_smarty_tpl->source->filepath)'; return 'basename($_smarty_tpl->source->filepath)';
case 'template_object':
return '$_smarty_tpl';
case 'current_dir': case 'current_dir':
return 'dirname($_smarty_tpl->source->filepath)'; return 'dirname($_smarty_tpl->source->filepath)';