Fix deprecated function calls in Smarty3 fix #122
Should fix #122 (closed)
Swap $smarty->register_function(...
for $smarty->registerPlugin('function', ...
. Also got rid of assign by ref which is also deprecated; couldn't see a reason for it needing to be by ref.