fix $filterName test wrongly taking the value from settings
This commit is contained in:
parent
c968717dbf
commit
72b22d1b01
|
@ -71,10 +71,10 @@ class Url
|
||||||
$this->setWhereAmI('home');
|
$this->setWhereAmI('home');
|
||||||
} elseif (!empty($this->slug) && ($filterURI=='/')) {
|
} elseif (!empty($this->slug) && ($filterURI=='/')) {
|
||||||
$this->setWhereAmI('page');
|
$this->setWhereAmI('page');
|
||||||
} elseif (empty($this->slug) && ($filterName==$this->filters('tag'))) {
|
} elseif (empty($this->slug) && ($filterName=='tag')) {
|
||||||
$this->slug = $this->filters('tag');
|
$this->slug = $this->filters('tag');
|
||||||
$this->setWhereAmI('page');
|
$this->setWhereAmI('page');
|
||||||
} elseif (empty($this->slug) && ($filterName==$this->filters('category'))) {
|
} elseif (empty($this->slug) && ($filterName=='category')) {
|
||||||
$this->slug = $this->filters('category');
|
$this->slug = $this->filters('category');
|
||||||
$this->setWhereAmI('page');
|
$this->setWhereAmI('page');
|
||||||
} elseif ($filterName=='admin') {
|
} elseif ($filterName=='admin') {
|
||||||
|
|
Loading…
Reference in New Issue