Browse files

Use ? or & as appropriate when appending output=html.

  • Loading branch information...
1 parent a04d0d2 commit dcba664f74439e37cc269df0cf549a2fee552aeb @bharat bharat committed Jan 29, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/rest/helpers/rest.php
View
6 modules/rest/helpers/rest.php
@@ -113,7 +113,11 @@ static function url() {
$url = call_user_func_array(array($class, "url"), $args);
if (Input::instance()->get("output") == "html") {
- $url .= "?output=html";
+ if (strpos($url, "?") === false) {
+ $url .= "?output=html";
+ } else {
+ $url .= "&output=html";
+ }
}
return $url;
}

0 comments on commit dcba664

Please sign in to comment.