X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/eef50167aaa4e525f1eb5a462c441ce8a203c43d..1f8560a20d5d1aa8886688bd7553b8a8fd704fff:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 438c282..79f718d 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -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); } }