X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/fa30f71a6ab727c90e0b600582f9944dfaa1ca89..651d9f8d7a700bfbc9d2c10a2f79eed9af8d62e4:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 35ae092..e298569 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -9,7 +9,7 @@ function showdate($parts) { global $monthname; return implode(' ', array_filter([ - intval($parts[3]), $parts[2] > 0 ? $monthname[intval($parts[2])] : '', $parts[1], + intval(@$parts[3]), $parts[2] > 0 ? $monthname[intval($parts[2])] : '', $parts[1], count($parts) > 6 ? "$parts[4]:$parts[5]" : '', ])); } @@ -60,7 +60,7 @@ class ArchiveArticle function dateparts() { - preg_match('', $this->page, $ymd); + preg_match('< / (\d{4}) [/-] (\d{2}) (?:- (\d{2}) )? - >x', $this->page, $ymd); return $ymd; }