Fix bug in query string construction.

This commit is contained in:
Taylor Otwell 2011-11-21 08:19:19 -06:00
parent 4283e7ec98
commit 92a1c70918
1 changed files with 4 additions and 2 deletions

View File

@ -267,9 +267,11 @@ protected function element($element, $text, $page, $disabler)
*/ */
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);