Merge "Fixed and normalized content-disposition for thumbs."
[lhc/web/wiklou.git] / includes / filerepo / file / File.php
index 3aa27ec..3b0ea14 100644 (file)
@@ -1013,7 +1013,8 @@ abstract class File {
                        $path = '/common/images/icons/' . $icon;
                        $filepath = $wgStyleDirectory . $path;
                        if ( file_exists( $filepath ) ) { // always FS
-                               return new ThumbnailImage( $this, $wgStylePath . $path, 120, 120 );
+                               $params = array( 'width' => 120, 'height' => 120 );
+                               return new ThumbnailImage( $this, $wgStylePath . $path, false, $params );
                        }
                }
                return null;