* (bug 3643) Fix image page display of large images with resizing disabled
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Oct 2005 21:43:55 +0000 (21:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Oct 2005 21:43:55 +0000 (21:43 +0000)
RELEASE-NOTES
includes/ImagePage.php

index 765aea7..33578f6 100644 (file)
@@ -132,6 +132,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * Blacklist additional MSIE CSS safety tricks
 * (bug 3332) Installation now uses Monobook, validates, plus usability improvements.
 * (bug 3629) Fix date & time format for Frisian
+* (bug 3643) Fix image page display of large images with resizing disabled
 
 
 === Caveats ===
index 2d9d8c3..1ab1c36 100644 (file)
@@ -174,14 +174,14 @@ class ImagePage extends Article {
                                        if( $wgUseImageResize ) {
                                                $thumbnail = $this->img->getThumbnail( $width );
                                                if ( $thumbnail == null ) {
-                                                       $url = $img->getViewURL();
+                                                       $url = $this->img->getViewURL();
                                                } else {
                                                        $url = $thumbnail->getURL();
                                                }
                                        } else {
                                                # No resize ability? Show the full image, but scale
                                                # it down in the browser so it fits on the page.
-                                               $url = $img->getViewURL();
+                                               $url = $this->img->getViewURL();
                                        }
                                        $anchoropen  = "<a href=\"{$full_url}\">";
                                        $anchorclose = "</a><br />";