From 8f618346f808fcc65de4574654053c73b588bf50 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 7 Oct 2005 21:43:55 +0000 Subject: [PATCH] * (bug 3643) Fix image page display of large images with resizing disabled --- RELEASE-NOTES | 1 + includes/ImagePage.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 765aea7605..33578f6499 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 2d9d8c3e33..1ab1c36f45 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -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 = ""; $anchorclose = "
"; -- 2.20.1