X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b9757db57858fdcff8af1a6566e299559e491b17..HEAD:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 59b24a4..1cbaf94 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 ($Page->api) { + if ($Page->path) return; + return (new PageSearch($Page->link))->files(); +} if ($User->admin("edit {$Page->handler}")) { $Page->raw = ''."\n" . $Page->raw;