page: store placeholder values in $Page object
[minimedit.git] / widget / nieuws.php
index 4f4fd454d1adada0fb8c081a892c27cdf2cba510..7185036121902fc2b4e946197282b9f28b583c06 100644 (file)
@@ -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 "<div>\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();