foto: translate tag album requests to .tag
[minimedit.git] / foto / index.php
index 8ba7db1768b977d9f75c2eb36dc6852776526f2f..1ebb53986bc08c3046e94ca32a1b5b60d137ef64 100644 (file)
@@ -2,6 +2,9 @@
 $rootdir = $Page->link;
 
 $nav = explode('/', $rootdir);
+if (count($nav) > 1 and $nav[1] == 'tag') {
+       $rootdir = preg_replace('{/}', '/.', $rootdir, 1);
+}
 $nav[0] = "Foto's"; # override of root 'foto'
 $title = array_pop($nav);
 $Page->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title;