Fixed a bug, when a tag with the same name as a folder didn't display

This commit is contained in:
michu2k
2019-04-30 01:58:04 +02:00
parent 6495e3a3da
commit be58308bcc

View File

@@ -61,7 +61,7 @@ class Router
}
$url = rtrim(dirname($_SERVER["SCRIPT_NAME"]), '/');
$url = trim(str_replace($url, '', $_SERVER['PATH_INFO']), '/');
$url = trim(preg_replace('#'.$url.'#', '', $_SERVER['PATH_INFO'], 1), '/');
if ($returnPath) {
return $url;