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;