nieuws: call placeholder for year lists
[minimedit.git] / nieuws / index.php
index 4da5a8bc9c22895cc66ddf0906fb6228875d82bd..468de280f72cfd6a6cb480269256fa9f59621901 100644 (file)
@@ -20,9 +20,10 @@ if ($page and !is_numeric($page)) {
 
 if ($year) {
        ob_clean();
+       $match = $Page;
        $title = "Nieuws";
        if (is_numeric($year) and $year > 999) {
-               $match = "$Page/$year/";
+               $match .= "/$year";
                if (is_numeric($page)) {
                        $title .= ' '.$monthname[intval($page)];
                        $match .= sprintf('%02d-', $page);
@@ -30,12 +31,12 @@ if ($year) {
                $title .= ' '.$year;
        }
        elseif ($year === '19') {
-               $match = "$Page/19??/";
+               $match .= "/19??";
                $title .= " vóór 2000";
        }
 
        print "<h2>$title</h2>\n\n";
-       shownews(glob($match.'*.html'));
+       print placeholder_include('nieuws', [$match]);
        return 1;
 }