From: Mischa POSLAWSKY Date: Fri, 20 Apr 2018 06:46:09 +0000 (+0200) Subject: nieuws: treat years before 2000 as single page X-Git-Tag: v3.0~8 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/4867902ad83bc343db74316e54058d85627ec5f2 nieuws: treat years before 2000 as single page --- 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 '