X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/eef50167aaa4e525f1eb5a462c441ce8a203c43d..e23ce7dc52392f928bf5879605da57e4bf7a7823:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 438c282..930eb00 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -54,7 +54,7 @@ class ArchiveArticle function dateparts() { - preg_match('', $this->page, $ymd); + preg_match('', $this->page, $ymd); return $ymd; } @@ -96,7 +96,7 @@ class ArchiveArticle function thumb($size = '300x') { if (!$this->image or $this->image[0] !== '/') return; - return "thumb/$size{$this->image}"; + return preg_replace('{^(?:/thumb/[^/]*)?}', "thumb/$size", $this->image); } }