X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/a09479494778e395ffe2dc75eb858ab3537ef14a..4fa1d9c17950b2f436a42c3dd1ad158506c6501e:/foto/index.php diff --git a/foto/index.php b/foto/index.php index 0ce4d20..0acd44e 100644 --- a/foto/index.php +++ b/foto/index.php @@ -1,12 +1,12 @@ link; if ($User->admin('foto')) { - if (!empty($PageAccess)) { + if ($Page->restricted) { $access = '🔒 Bewoners'; - if ($PageAccess != $rootdir) { + if ($Page->restricted != $rootdir) { $access .= sprintf(' vanaf %s', - "/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME) + "/{$Page->restricted}", pathinfo($Page->restricted, PATHINFO_FILENAME) ); } } @@ -19,19 +19,19 @@ if ($User->admin('foto')) { $nav = explode('/', $rootdir); $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); -$Article->title = implode(' ', $nav) . ': ' . $title; +$Page->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title; $link = ''; print "