X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..v4.5-6-g50f9b29cc2:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index 977357e..9cf427c 100644 --- a/widget/nieuws.php +++ b/widget/nieuws.php @@ -55,7 +55,7 @@ function printtoc($input, $class = FALSE) $articles = (ltrim($Page->path, '/') ?: 'nieuws'); if (strpos($articles, '/') === FALSE) { - if (@$Place['view'] === 'toc') { + if (@$Page->place['view'] === 'toc') { print "
\n"; foreach (array_reverse(glob("$articles/2???")) as $page) { $year = basename($page, '.html'); @@ -68,10 +68,11 @@ if (strpos($articles, '/') === FALSE) { $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();