[UPSTREAM] Upgraded smarty libraries

Fixes #1249 once merged.
Merge pull request #1250 from TheSerapher/issue-1249

[UPSTREAM] Upgraded smarty libraries