You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Smarty 2 $constants.COUNTRY
compiles to $_smarty_tpl->tpl_vars['constants']->value['COUNTRY']
But in Smarty 3 it compiles to $_smarty_tpl->tpl_vars['constants']->value[COUNTRY]
The reason is that I also have a constant named COUNTRY and for some reason Smarty takes thevalue of the constant and use it as the array key instead of literal 'COUNTRY'.
Is this a bug or an intended change from Smarty 2 to Smarty 3? If intended, why, and can the old behaviour be enabled again somehow?
The text was updated successfully, but these errors were encountered:
In Smarty 2
$constants.COUNTRY
compiles to
$_smarty_tpl->tpl_vars['constants']->value['COUNTRY']
But in Smarty 3 it compiles to
$_smarty_tpl->tpl_vars['constants']->value[COUNTRY]
The reason is that I also have a constant named
COUNTRY
and for some reason Smarty takes the value of the constant and use it as the array key instead of literal'COUNTRY'
.Is this a bug or an intended change from Smarty 2 to Smarty 3? If intended, why, and can the old behaviour be enabled again somehow?
The text was updated successfully, but these errors were encountered: