r48816 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48815‎ | r48816 | r48817 >
Date:13:52, 25 March 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix fatal, same wfFindFile issue
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -299,7 +299,7 @@
300300 }
301301
302302 $image = wfFindFile( $imageTitle );
303 - if ( $image->exists() ) {
 303+ if ( $image && $image->exists() ) {
304304 $width = $image->getWidth();
305305 $height = $image->getHeight();
306306 if($m[2]) {

Status & tagging log