mirror of
https://github.com/sruupl/batflat.git
synced 2026-07-13 19:51:46 +02:00
Merge pull request #51 from michu2k/fix#49
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