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
/
index.php
diff --git
a/nieuws/index.php
b/nieuws/index.php
index 4da5a8bc9c22895cc66ddf0906fb6228875d82bd..468de280f72cfd6a6cb480269256fa9f59621901 100644
(file)
--- a/
nieuws/index.php
+++ b/
nieuws/index.php
@@
-20,9
+20,10
@@
if ($page and !is_numeric($page)) {
if ($year) {
ob_clean();
if ($year) {
ob_clean();
+ $match = $Page;
$title = "Nieuws";
if (is_numeric($year) and $year > 999) {
$title = "Nieuws";
if (is_numeric($year) and $year > 999) {
- $match
= "$Page/$year/
";
+ $match
.= "/$year
";
if (is_numeric($page)) {
$title .= ' '.$monthname[intval($page)];
$match .= sprintf('%02d-', $page);
if (is_numeric($page)) {
$title .= ' '.$monthname[intval($page)];
$match .= sprintf('%02d-', $page);
@@
-30,12
+31,12
@@
if ($year) {
$title .= ' '.$year;
}
elseif ($year === '19') {
$title .= ' '.$year;
}
elseif ($year === '19') {
- $match
= "$Page/19??/
";
+ $match
.= "/19??
";
$title .= " vóór 2000";
}
print "<h2>$title</h2>\n\n";
$title .= " vóór 2000";
}
print "<h2>$title</h2>\n\n";
-
shownews(glob($match.'*.html')
);
+
print placeholder_include('nieuws', [$match]
);
return 1;
}
return 1;
}