Simplify Url::addFilter()

This changes the rendered resulting Url from x&(y&z) to x&y&z.

refs #10778
This commit is contained in:
Alexander A. Klimov 2015-12-16 19:39:03 +01:00 committed by Eric Lippmann
parent f6e4b0aed0
commit 5b0730574d
1 changed files with 3 additions and 4 deletions

View File

@ -219,10 +219,9 @@ class Url
public function addFilter($and) public function addFilter($and)
{ {
$this->setQueryString( $this->setQueryString(
Filter::matchAll( Filter::fromQueryString($this->getQueryString())
$and, ->andFilter($and)
Filter::fromQueryString($this->getQueryString()) ->toQueryString()
)->toQueryString()
); );
return $this; return $this;
} }