Update Smarty.php