X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/50f9b29cc21f5adef555d3cf21940124ceadb0eb..e02706eef130529aac80bb58cf9755c850e316a7:/nieuws/index.php
diff --git a/nieuws/index.php b/nieuws/index.php
index 33b61fb..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;
}
@@ -13,7 +18,7 @@ if ($page and !is_numeric($page)) {
$Page->title = $edit;
}
if ($Page->dateparts) {
- $Page->place[1] = ' '.$Page->date.'';
+ $Page->place[1] = ' '.showdate($Page->dateparts).'';
}
else {
$Page->place[1] = '';