Fixes the Smarty urlparameters function