Update url.class.php

This commit is contained in:
Diego Najar 2017-09-20 16:54:47 +02:00 committed by GitHub
parent e96cfebb20
commit 7c378836f2

View File

@ -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;