mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289)
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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)';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user