From 72b22d1b014840a583ff625fe109d0c3fbfbab15 Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Fri, 23 Aug 2019 18:40:09 +0200 Subject: [PATCH] fix $filterName test wrongly taking the value from settings --- bl-kernel/url.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/url.class.php b/bl-kernel/url.class.php index 2e65e58f..c89e3963 100644 --- a/bl-kernel/url.class.php +++ b/bl-kernel/url.class.php @@ -71,10 +71,10 @@ class Url $this->setWhereAmI('home'); } elseif (!empty($this->slug) && ($filterURI=='/')) { $this->setWhereAmI('page'); - } elseif (empty($this->slug) && ($filterName==$this->filters('tag'))) { + } elseif (empty($this->slug) && ($filterName=='tag')) { $this->slug = $this->filters('tag'); $this->setWhereAmI('page'); - } elseif (empty($this->slug) && ($filterName==$this->filters('category'))) { + } elseif (empty($this->slug) && ($filterName=='category')) { $this->slug = $this->filters('category'); $this->setWhereAmI('page'); } elseif ($filterName=='admin') {