X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b9757db57858fdcff8af1a6566e299559e491b17..1d0e94b9030f08157198b6e4911491698e9d2f5f:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 59b24a4..507f493 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,7 +2,10 @@ $replyform = $Page->handler == 'melding' && $User->login; @list ($year, $page) = explode('/', trim($Page->path, '/')); -if (!$User) return; +if (!$User) { + if ($Page->path) return; + return array_keys((new PageSearch($Page->link))->files()); +} if ($User->admin("edit {$Page->handler}")) { $Page->raw = ''."\n" . $Page->raw;