Merge "Change mode of non-executable files back to 0644"
[lhc/web/wiklou.git] / includes / media / Tiff.php
index 55dff77..55acb12 100644 (file)
@@ -43,7 +43,7 @@ class TiffHandler extends ExifBitmapHandler {
        function canRender( $file ) {
                global $wgTiffThumbnailType;
                return (bool)$wgTiffThumbnailType
-                       || ($file->getRepo() instanceof ForeignAPIRepo);
+                       || $file->getRepo() instanceof ForeignAPIRepo;
        }
 
        /**
@@ -82,7 +82,7 @@ class TiffHandler extends ExifBitmapHandler {
                                $meta = BitmapMetadataHandler::Tiff( $filename );
                                if ( !is_array( $meta ) ) {
                                        // This should never happen, but doesn't hurt to be paranoid.
-                                       throw new MWException('Metadata array is not an array');
+                                       throw new MWException( 'Metadata array is not an array' );
                                }
                                $meta['MEDIAWIKI_EXIF_VERSION'] = Exif::version();
                                return serialize( $meta );