Changes for Smarty 3