X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/f065f4739ae477d8877805463017f2e7b15e2db5..b04f76050d54c67844d5d4026993f6fab0edeae5:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index 4f4fd45..7185036 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,10 @@ if (strpos($articles, '/') === FALSE) { $articles .= '/????'; } -if (@$Place['view'] === 'toc') { +if (@$Page->place['view'] === 'toc') { printtoc($articles); return; } ob_start(); -shownews($articles, @$Place['n'] ?: 5); +shownews($articles, @$Page->place['n'] ?: 5); print $Page->render();