X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/50f9b29cc21f5adef555d3cf21940124ceadb0eb..HEAD:/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] = '';