diff options
Diffstat (limited to 'modules/SmartyPlugins/function.url.php')
-rw-r--r-- | modules/SmartyPlugins/function.url.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/SmartyPlugins/function.url.php b/modules/SmartyPlugins/function.url.php index 0fbb5726ab..810687efe8 100644 --- a/modules/SmartyPlugins/function.url.php +++ b/modules/SmartyPlugins/function.url.php @@ -4,7 +4,7 @@ * @package Smarty * @subpackage plugins */ - +require_once "Url.php"; /** * Smarty {mailto} function plugin @@ -29,16 +29,7 @@ */ function smarty_function_url($params, &$smarty) { - $queryString = Piwik_Url::getCurrentQueryString(); - $queryString = htmlspecialchars($queryString); - $urlValues = Piwik_Common::getArrayFromQueryString($queryString); -// var_dump($urlValues); - foreach($params as $key => $value) - { - $urlValues[$key] = $value; - } - - return '?' . http_build_query($urlValues); + return Piwik_Url::getCurrentQueryStringWithParametersModified( $params ); } /* vim: set expandtab: */ |