From: Mischa POSLAWSKY Date: Mon, 3 Sep 2018 20:25:22 +0000 (+0200) Subject: nieuws: call placeholder for year lists X-Git-Tag: v3.7~7 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/c00b91e7b8738a6f6a6c61dddc44b532c0d131d2 nieuws: call placeholder for year lists --- diff --git a/nieuws.php b/nieuws.php index fda142e..7127a54 100644 --- a/nieuws.php +++ b/nieuws.php @@ -1,6 +1,9 @@ 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 "

$title

\n\n"; - shownews(glob($match.'*.html')); + print placeholder_include('nieuws', [$match]); return 1; }