Simplify Url::addFilter()
This changes the rendered resulting Url from x&(y&z) to x&y&z. refs #10778
This commit is contained in:
parent
f6e4b0aed0
commit
5b0730574d
|
@ -219,10 +219,9 @@ class Url
|
|||
public function addFilter($and)
|
||||
{
|
||||
$this->setQueryString(
|
||||
Filter::matchAll(
|
||||
$and,
|
||||
Filter::fromQueryString($this->getQueryString())
|
||||
)->toQueryString()
|
||||
->andFilter($and)
|
||||
->toQueryString()
|
||||
);
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue