From 7c378836f2a881c4115dcf3992b6d590354eee6e Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 20 Sep 2017 16:54:47 +0200 Subject: [PATCH] Update url.class.php --- bl-kernel/url.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bl-kernel/url.class.php b/bl-kernel/url.class.php index 1ebf6ded..6d296112 100644 --- a/bl-kernel/url.class.php +++ b/bl-kernel/url.class.php @@ -42,7 +42,6 @@ class Url unset($filters['admin']); uasort($filters, array($this, 'sortByLength')); $this->filters = $adminFilter + $filters; - $this->filters = $filters; foreach ($this->filters as $filterName=>$filterURI) { // $filterName = 'category' @@ -69,7 +68,7 @@ class Url // Check coincidence with complete filterURI if ($subString==$filterURI) { - $this->slug = mb_substr($this->uri, $filterFullLenght+1); + $this->slug = mb_substr($this->uri, $filterFullLenght); $this->whereAmI = $filterName; $this->activeFilter = $filterURI;