mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- enhancement to allow variable constant names like {$smarty.const.{$foo}} (Forum Topic 23970)
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
- bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966)
|
- bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966)
|
||||||
- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127)
|
- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127)
|
||||||
- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128)
|
- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128)
|
||||||
|
- enhancement to allow variable constant names like {$smarty.const.{$foo}} (Forum Topic 23970)
|
||||||
|
|
||||||
06.01.2013
|
06.01.2013
|
||||||
- Allow '://' URL syntax in template names of stream resources (Issue #129)
|
- Allow '://' URL syntax in template names of stream resources (Issue #129)
|
||||||
|
@@ -77,7 +77,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
$compiler->trigger_template_error("(secure mode) constants not permitted");
|
$compiler->trigger_template_error("(secure mode) constants not permitted");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return '@' . trim($_index[1], "'");
|
return "@constant({$_index[1]})";
|
||||||
|
|
||||||
case 'config':
|
case 'config':
|
||||||
if (isset($_index[2])) {
|
if (isset($_index[2])) {
|
||||||
|
Reference in New Issue
Block a user