Upgraded the Smarty Template Engine to version 3.1.18, and upgraded corresponding templates as well.