X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/8fd22c9ade887e18e01dafd8a24842f6cfdc93ab..a4df323abd9cc8e007f9accc58d7482048e3e3c4:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 61ba993..1cbaf94 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,6 +2,11 @@ $replyform = $Page->handler == 'melding' && $User->login; @list ($year, $page) = explode('/', trim($Page->path, '/')); +if ($Page->api) { + if ($Page->path) return; + return (new PageSearch($Page->link))->files(); +} + if ($User->admin("edit {$Page->handler}")) { $Page->raw = ''."\n" . $Page->raw; }