From 4867902ad83bc343db74316e54058d85627ec5f2 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 20 Apr 2018 08:46:09 +0200 Subject: [PATCH] nieuws: treat years before 2000 as single page --- nieuws.inc.php | 5 +++-- nieuws.php | 26 ++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/nieuws.inc.php b/nieuws.inc.php index 25952ef..3d88a26 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -43,10 +43,11 @@ function shownews($root, $limit = 5) } } -function printtoc($root) +function printtoc($input) { + if (!is_array($input)) $input = glob("$input/*.html"); print '