(bug 39538) SVG filepages do not need the file-nohires message.
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 7 Sep 2012 17:23:37 +0000 (19:23 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 11 Sep 2012 21:48:01 +0000 (23:48 +0200)
Change-Id: I88b75079d09cc3ab1904a0a2d716fe2df57b7be6

includes/ImagePage.php

index c7afb76..6f1b1a1 100644 (file)
@@ -383,6 +383,9 @@ class ImagePage extends Article {
                                        # Some sort of audio file that doesn't have dimensions
                                        # Don't output a no hi res message for such a file
                                        $msgsmall = '';
+                               } elseif ( $this->displayImg->isVectorized() ) {
+                                       # For vectorized images, full size is just the frame size
+                                       $msgsmall = '';
                                } else {
                                        # Image is small enough to show full size on image page
                                        $msgsmall = wfMessage( 'file-nohires' )->parse();