Smarty 3.1.19 upgrade