nieuws: call placeholder for year lists
[minimedit.git] / nieuws.php
index fda142e62c50985599785298f8d1bb1be22077ae..7127a545332171b144ebdb457396e5c1e38a5330 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 include_once 'nieuws.inc.php';
-$articles = (ltrim($Args, '/') ?: 'nieuws') . '/????';
+$articles = (ltrim($Args, '/') ?: 'nieuws');
+if (strpos($articles, '/') === FALSE) {
+       $articles .= '/????';
+}
 ob_start();
 shownews($articles, @$Place['n'] ?: 5);
 print getoutput();