X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b04f76050d54c67844d5d4026993f6fab0edeae5..8216853ef9dabf609c67f2cfea3b71a5c9811c6e:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index f6e63a4..1cbaf94 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,8 +2,13 @@ $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}")) { - print ''."\n"; + $Page->raw = ''."\n" . $Page->raw; } if ($page and !is_numeric($page)) { @@ -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] = '';