2011-07-13, 09:53 AM
In 1.6.4, the templates system has changed to disallow certain variables. This is to help enhance the security of the templates system.
Because of these changes, only the following variables should be used:
While you can still enter templates directly into the database with other variables, an error will appear if a template the Administrator is trying to edit contains any other type of variable. They will have to remove it before they are able to save the template.
As well as these changes, the same process applies if you try to use a $config variable.
While Theme Artists may not be affected by these changes, if your theme relies on a plugin you'll need to make sure that the information you use are passed to the templates properly.
For other changes to 1.6.4, please refer to [wiki]1.6.4[/wiki]. If you have any questions, please feel free to ask!
Thanks,
Tomm
Because of these changes, only the following variables should be used:
// Plain variables
{$hello} {$world} {$foo_bar} {$hello->world} {$foo->bar}
// Array variables
{$hello['world']} {$world['hello']} {$foo['bar']}
// Variables as array key
{$hello[$world]} {$world[$hello]} {$foo[$bar]}
While you can still enter templates directly into the database with other variables, an error will appear if a template the Administrator is trying to edit contains any other type of variable. They will have to remove it before they are able to save the template.
As well as these changes, the same process applies if you try to use a $config variable.
While Theme Artists may not be affected by these changes, if your theme relies on a plugin you'll need to make sure that the information you use are passed to the templates properly.
For other changes to 1.6.4, please refer to [wiki]1.6.4[/wiki]. If you have any questions, please feel free to ask!
Thanks,
Tomm