From e23ce7dc52392f928bf5879605da57e4bf7a7823 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 3 Sep 2018 23:21:27 +0200 Subject: [PATCH] nieuws: support tagged article links --- nieuws.inc.php | 2 +- nieuws/index.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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]); -- 2.30.0