Update to smarty 3.1.18