From c00b91e7b8738a6f6a6c61dddc44b532c0d131d2 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 3 Sep 2018 22:25:22 +0200 Subject: [PATCH] nieuws: call placeholder for year lists --- nieuws.php | 5 ++++- nieuws/index.php | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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; } -- 2.30.0