- if (is_numeric($year)) {
- $title = "Nieuws ".($month ? $monthname[$month].' ' : '').$year;
- $match = implode('/', [
- $Page, $year, $month ? sprintf('%02d', $month) : '??',
- ]);
+ $title = "Nieuws";
+ if (is_numeric($year) and $year > 999) {
+ $match = "$Page/$year/";
+ if (is_numeric($page)) {
+ $title .= ' '.$monthname[intval($page)];
+ $match .= sprintf('%02d-', $page);
+ }
+ $title .= ' '.$year;