r48820 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48819‎ | r48820 | r48821 >
Date:14:00, 25 March 2009
Author:werdna
Status:ok
Tags:
Comment:
Allow for false as $image parameter again in pr_navigation (ProofreadPage)
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -132,7 +132,7 @@
133133
134134
135135 //if multipage, we use the page order, but we should read pagenum from the index
136 - if( $image->exists() && $image->isMultiPage() ) {
 136+ if( $image && $image->exists() && $image->isMultiPage() ) {
137137
138138 $pagenr = 1;
139139 $parts = explode( '/', $wgTitle->getText() );

Status & tagging log