From: Mischa POSLAWSKY Date: Tue, 27 Apr 2021 15:03:15 +0000 (+0200) Subject: foto: translate tag album requests to .tag X-Git-Tag: v5.3~19 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/8d0254ce8a1ebceb80a2d14af414af1ca0a972be foto: translate tag album requests to .tag Hidden from overviews but accessible without dot. --- diff --git a/foto/index.php b/foto/index.php index 8ba7db1..1ebb539 100644 --- a/foto/index.php +++ b/foto/index.php @@ -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;