r82443 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82442‎ | r82443 | r82444 >
Date:11:13, 19 February 2011
Author:maxsem
Status:ok
Tags:
Comment:
ProofreadPage: use proper accessor to avoid fatals
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -474,7 +474,7 @@
475475 function imageMessage( &$imgpage, &$out ) {
476476 global $wgUser;
477477 $index_namespace = $this->index_namespace;
478 - $image = $imgpage->img;
 478+ $image = $imgpage->getFile();
479479 if ( !$image->isMultipage() ) {
480480 return true;
481481 }

Status & tagging log