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)
{
$this->setQueryString(
Filter::matchAll(
$and,
Filter::fromQueryString($this->getQueryString())
)->toQueryString()
Filter::fromQueryString($this->getQueryString())
->andFilter($and)
->toQueryString()
);
return $this;
}