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
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ class Url
unset($filters['admin']); unset($filters['admin']);
uasort($filters, array($this, 'sortByLength')); uasort($filters, array($this, 'sortByLength'));
$this->filters = $adminFilter + $filters; $this->filters = $adminFilter + $filters;
$this->filters = $filters;
foreach ($this->filters as $filterName=>$filterURI) { foreach ($this->filters as $filterName=>$filterURI) {
// $filterName = 'category' // $filterName = 'category'
@ -69,7 +68,7 @@ class Url
// Check coincidence with complete filterURI // Check coincidence with complete filterURI
if ($subString==$filterURI) { if ($subString==$filterURI) {
$this->slug = mb_substr($this->uri, $filterFullLenght+1); $this->slug = mb_substr($this->uri, $filterFullLenght);
$this->whereAmI = $filterName; $this->whereAmI = $filterName;
$this->activeFilter = $filterURI; $this->activeFilter = $filterURI;