Updated Smarty 1.2