fix access to `CATEGORY_URI_FILTER` and `TAG_URI_FILTER` before define'd
This commit is contained in:
parent
2cf7339796
commit
c968717dbf
|
@ -71,11 +71,11 @@ 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==TAG_URI_FILTER)) {
|
} elseif (empty($this->slug) && ($filterName==$this->filters('tag'))) {
|
||||||
$this->slug = TAG_URI_FILTER;
|
$this->slug = $this->filters('tag');
|
||||||
$this->setWhereAmI('page');
|
$this->setWhereAmI('page');
|
||||||
} elseif (empty($this->slug) && ($filterName==CATEGORY_URI_FILTER)) {
|
} elseif (empty($this->slug) && ($filterName==$this->filters('category'))) {
|
||||||
$this->slug = CATEGORY_URI_FILTER;
|
$this->slug = $this->filters('category');
|
||||||
$this->setWhereAmI('page');
|
$this->setWhereAmI('page');
|
||||||
} elseif ($filterName=='admin') {
|
} elseif ($filterName=='admin') {
|
||||||
$this->slug = ltrim($this->slug, '/');
|
$this->slug = ltrim($this->slug, '/');
|
||||||
|
|
Loading…
Reference in New Issue