X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..68acff62101e1c302e55befa6d526c46f15da464:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 0840015..61ba993 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -3,7 +3,7 @@ $replyform = $Page->handler == 'melding' && $User->login; @list ($year, $page) = explode('/', trim($Page->path, '/')); if ($User->admin("edit {$Page->handler}")) { - print ''."\n"; + $Page->raw = ''."\n" . $Page->raw; } if ($page and !is_numeric($page)) { @@ -13,10 +13,10 @@ if ($page and !is_numeric($page)) { $Page->title = $edit; } if ($Page->dateparts) { - $Place[1] = ' '.$Page->date.''; + $Page->place[1] = ' '.showdate($Page->dateparts).''; } else { - $Place[1] = ''; + $Page->place[1] = ''; } print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', $Page->raw); if ($User->admin("edit {$Page->link}")) { @@ -41,7 +41,7 @@ if ($page and !is_numeric($page)) { } } if ($replyform) { - print placeholder_include('reply'); + print $Page->widget('reply'); } return; } @@ -67,6 +67,6 @@ if ($year) { } print "

$title

\n\n"; - print placeholder_include('nieuws', [$match]); + print $Page->widget('nieuws', [$match]); return; }