smarty->_tpl_vars[$k[0]][$k[1]])) { $template->smarty->_tpl_vars[$k[0]][$k[1]] = add_url_params($template->smarty->_tpl_vars[$k[0]][$k[1]], array($param => $_GET[$param])); } elseif (!isset($k[1]) and isset($template->smarty->_tpl_vars[$k[0]])) { $template->smarty->_tpl_vars[$k[0]] = add_url_params($template->smarty->_tpl_vars[$k[0]], array($param => $_GET[$param])); } } } ?>