[lib] fix #86, smarty up to 2.6.28
Merge branch 'master' into 2.3