Fix bug in query string construction.
This commit is contained in:
parent
4283e7ec98
commit
92a1c70918
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue