From d246232e079a765d26d799b2e4aae582b4fe68f6 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 20 Apr 2007 19:45:58 +0000 Subject: [PATCH] Don't double-normalise parameters, introduces rounding errors. --- includes/Image.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Image.php b/includes/Image.php index aefdd7317a..6a36f25ca8 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -908,9 +908,10 @@ class Image break; } - $handler->normaliseParams( $this, $params ); + $normalisedParams = $params; + $handler->normaliseParams( $this, $normalisedParams ); list( $thumbExt, $thumbMime ) = self::getThumbType( $this->extension, $this->mime ); - $thumbName = $this->thumbName( $params ); + $thumbName = $this->thumbName( $normalisedParams ); $thumbPath = wfImageThumbDir( $this->name, $this->fromSharedDirectory ) . "/$thumbName"; $thumbUrl = $this->thumbUrl( $thumbName ); -- 2.20.1