mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Use ? or & as appropriate when appending output=html.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user