[BF] Fix issue with Smarty at the moment (2)

References:

https://code.google.com/p/smarty-php/issues/detail?id=184
https://code.google.com/p/smarty-php/issues/detail?id=168