X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/1801380d62ab693e819f17706a9530679a1add1e..caa254384466d5f8477de38fcf7492a1ecd3f938:/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;