From: Alan Knowles Date: Wed, 23 May 2012 02:54:30 +0000 (+0800) Subject: Images.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=4ce5936ca5443e0cc513efa657810193cbfc5a3d;p=Pman.Core Images.php --- diff --git a/Images.php b/Images.php index 676234cf..1aa06397 100644 --- a/Images.php +++ b/Images.php @@ -288,8 +288,7 @@ class Pman_Core_Images extends Pman } $type = explode('/', $umatch[1]); $thumbsize = -1; - $new_thumbsize = -1; - + if (count($type) > 2 && $type[1] == 'Thumb') { $thumbsize = $type[2]; $provider = 'Images/Thumb'; @@ -328,7 +327,7 @@ class Pman_Core_Images extends Pman $new_tag = str_replace( 'src="'. $attr['src'] . '"', - 'src="'. htmlspecialchars($img->URL($new_thumbsize , $provider, $baseURL)) . '"', + 'src="'. htmlspecialchars($img->URL($thumbsize, $provider, $baseURL)) . '"', $tag );