Merge pull request #1308 from TheSFReader/master

Changed the linkTo function (from Helper class) to get rid of an unnecessary (and potentially non conform) leading '&' character when adding arguments
This commit is contained in:
Jörn Friedrich Dreyer 2013-01-30 02:37:11 -08:00
commit a6040d0cc7

View file

@ -78,11 +78,8 @@ class OC_Helper {
}
}
if (!empty($args)) {
$urlLinkTo .= '?';
foreach($args as $k => $v) {
$urlLinkTo .= '&'.$k.'='.urlencode($v);
}
if ($args && $query = http_build_query($args, '', '&')) {
$urlLinkTo .= '?'.$query;
}
return $urlLinkTo;