update Smarty 3.1.18