Updated for newer version of Smarty (3.1.7)

Change-Id: I36d998c7a987ee827a35ada627acb6fbbfd6647c