Commit 92a1c709 authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in query string construction.

parent 4283e7ec
...@@ -267,9 +267,11 @@ class Paginator { ...@@ -267,9 +267,11 @@ class Paginator {
*/ */
protected function appendage($element, $page) protected function appendage($element, $page)
{ {
if (is_null($this->appendage)) $this->appendage = '?page=%s';
if (count($this->appends) > 0)
{ {
$this->appendage = '?page=%s'.http_build_query((array) $this->appends); $this->appendage = '&'.http_build_query($this->appends);
} }
return sprintf($this->appendage, $page); return sprintf($this->appendage, $page);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment