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