X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fmedia%2FBitmapHandler.php;h=f003554727608f204b7d355a1acd2b583650a325;hb=75f937543b8d3eaec8d3fe4f726c088ef028abab;hp=b8b706d48849b0a371ae48113cb49b17ee799ad6;hpb=867ec0704035708b91a3003275732a25e0f55644;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/BitmapHandler.php b/includes/media/BitmapHandler.php index b8b706d488..f003554727 100644 --- a/includes/media/BitmapHandler.php +++ b/includes/media/BitmapHandler.php @@ -338,10 +338,8 @@ class BitmapHandler extends TransformationalImageHandler { } $im->setImageDepth( 8 ); - if ( $rotation ) { - if ( !$im->rotateImage( new ImagickPixel( 'white' ), 360 - $rotation ) ) { - return $this->getMediaTransformError( $params, "Error rotating $rotation degrees" ); - } + if ( $rotation && !$im->rotateImage( new ImagickPixel( 'white' ), 360 - $rotation ) ) { + return $this->getMediaTransformError( $params, "Error rotating $rotation degrees" ); } if ( $this->isAnimatedImage( $image ) ) {