X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/c0f916285fa69edb97a6c8311f567b90b3959ed3..81b908af157b8580cca92046dd4ad8772c61e4fb:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 1a68993..40432a9 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -113,7 +113,10 @@ class ArchiveArticle function thumb($size = '300x') { if (!$this->image or $this->image[0] !== '/') return; - return preg_replace('{^(?:/thumb/[^/]*)?}', "thumb/$size", $this->image); + return preg_replace( + ['{^(?:/thumb/[^/]*)?}', '/\.groot(?=\.\w+$)/'], ["thumb/$size", ''], + $this->image + ); } }