From c968717dbfb06d559f726f33c00f337652b4fdd8 Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Fri, 23 Aug 2019 18:30:30 +0200 Subject: [PATCH] fix access to `CATEGORY_URI_FILTER` and `TAG_URI_FILTER` before define'd --- bl-kernel/url.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bl-kernel/url.class.php b/bl-kernel/url.class.php index de712ed4..2e65e58f 100644 --- a/bl-kernel/url.class.php +++ b/bl-kernel/url.class.php @@ -71,11 +71,11 @@ class Url $this->setWhereAmI('home'); } elseif (!empty($this->slug) && ($filterURI=='/')) { $this->setWhereAmI('page'); - } elseif (empty($this->slug) && ($filterName==TAG_URI_FILTER)) { - $this->slug = TAG_URI_FILTER; + } elseif (empty($this->slug) && ($filterName==$this->filters('tag'))) { + $this->slug = $this->filters('tag'); $this->setWhereAmI('page'); - } elseif (empty($this->slug) && ($filterName==CATEGORY_URI_FILTER)) { - $this->slug = CATEGORY_URI_FILTER; + } elseif (empty($this->slug) && ($filterName==$this->filters('category'))) { + $this->slug = $this->filters('category'); $this->setWhereAmI('page'); } elseif ($filterName=='admin') { $this->slug = ltrim($this->slug, '/');