Last modified: 2010-05-15 15:37:40 UTC
There is a problem with the ImagePage.php file. $img is undefined, whereas $this->img is defined. Changed two lines of code, the patch is below. --- wiki/mediawiki-1.5.0/includes/ImagePage.php 2005-09-13 11:28:03.000000000 +1000 +++ wiki-patched/mediawiki-1.5.0/includes/ImagePage.php 2005-10-19 10:03:30.000000000 +1000 @@ -172,14 +172,14 @@ 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 />";
*** This bug has been marked as a duplicate of 3643 ***
Created attachment 1010 [details] Patch to fix the problem Decided to add the patch as an attachment, since putting it in the comment made it unreadable.