From: Tim Starling Date: Fri, 20 Apr 2007 19:45:58 +0000 (+0000) Subject: Don't double-normalise parameters, introduces rounding errors. X-Git-Tag: 1.31.0-rc.0~53319 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=d246232e079a765d26d799b2e4aae582b4fe68f6;p=lhc%2Fweb%2Fwiklou.git Don't double-normalise parameters, introduces rounding errors. --- 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 );