From: Mischa POSLAWSKY Date: Mon, 3 Sep 2018 21:21:27 +0000 (+0200) Subject: nieuws: support tagged article links X-Git-Tag: v3.7~5 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/e23ce7dc52392f928bf5879605da57e4bf7a7823 nieuws: support tagged article links --- diff --git a/nieuws.inc.php b/nieuws.inc.php index 79f718d..930eb00 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -54,7 +54,7 @@ class ArchiveArticle function dateparts() { - preg_match('', $this->page, $ymd); + preg_match('', $this->page, $ymd); return $ymd; } diff --git a/nieuws/index.php b/nieuws/index.php index b54d5bd..11e305e 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -34,6 +34,10 @@ if ($year) { $match .= "/19??"; $title .= " vóór 2000"; } + elseif (file_exists("$Page/.tags/$year")) { + $match .= "/.tags/$year"; + $title .= " met $year"; + } print "

$title

\n\n"; print placeholder_include('nieuws', [$match]);