git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nieuws: call placeholder for year lists
[minimedit.git]
/
nieuws.php
diff --git
a/nieuws.php
b/nieuws.php
index 6bf66160fa594a6c56d24da89b3eaf93a176adc0..7127a545332171b144ebdb457396e5c1e38a5330 100644
(file)
--- a/
nieuws.php
+++ b/
nieuws.php
@@
-1,4
+1,9
@@
<?php
include_once 'nieuws.inc.php';
<?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);
shownews($articles, @$Place['n'] ?: 5);
+print getoutput();