X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/cd52370f65beeb38f283fbe072c48638ce68629c..92e54cde1cabdb24dcde3937d390a5b176032be5:/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 + ); } }