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