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

This commit is contained in:
Bharat Mediratta
2010-01-29 20:37:48 -08:00
parent a04d0d2789
commit dcba664f74
+5 -1
View File
@@ -113,7 +113,11 @@ class rest_Core {
$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;
}