mirror of
https://github.com/sruupl/batflat.git
synced 2026-01-20 04:22:05 +01:00
Fixed a bug, when a tag with the same name as a folder didn't display
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user