upgrade Smarty to 3.1.15 - close #373