From: Brion Vibber Date: Fri, 7 Oct 2005 21:43:55 +0000 (+0000) Subject: * (bug 3643) Fix image page display of large images with resizing disabled X-Git-Tag: 1.6.0~1513 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=8f618346f808fcc65de4574654053c73b588bf50;p=lhc%2Fweb%2Fwiklou.git * (bug 3643) Fix image page display of large images with resizing disabled --- 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 = "
";