$articles = (ltrim($Page->path, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
- if (@$Place['view'] === 'toc') {
+ if (@$Page->place['view'] === 'toc') {
print "<div>\n";
foreach (array_reverse(glob("$articles/2???")) as $page) {
$year = basename($page, '.html');
$articles .= '/????';
}
-if (@$Place['view'] === 'toc') {
+if (@$Page->place['view'] === 'toc') {
printtoc($articles);
return;
}
ob_start();
-shownews($articles, @$Place['n'] ?: 5);
-print getoutput();
+shownews($articles, @$Page->place['n'] ?: 5);
+$Page->raw = ob_get_clean();
+print $Page->render();