From 13cbb3dd29815b7b85578242beceb8cc0cf0a70c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 5 Jul 2006 12:51:38 +0000 Subject: [PATCH] Fixed SVG bug introduced in 15342 --- includes/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Image.php b/includes/Image.php index e5b12166ce..185d732a05 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -902,7 +902,7 @@ class Image } else { // Don't render, just return the URL if ( $this->validateThumbParams( $width, $height ) ) { - if ( $width == $this->width && $height == $this->height ) { + if ( !$this->mustRender() && $width == $this->width && $height == $this->height ) { $url = $this->getURL(); } else { list( $isScriptUrl, $url ) = $this->thumbUrl( $width ); @@ -1011,7 +1011,7 @@ class Image return null; } - if ( $width == $this->width && $height == $this->height ) { + if ( !$this->mustRender() && $width == $this->width && $height == $this->height ) { # validateThumbParams (or the user) wants us to return the unscaled image $thumb = new ThumbnailImage( $this->getURL(), $width, $height ); wfProfileOut( __METHOD__ ); -- 2.20.1