r76793 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76792‎ | r76793 | r76794 >
Date:14:09, 16 November 2010
Author:thomasv
Status:ok
Tags:
Comment:
fix capitalization : the p is not capitalized in File::isMultipage
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -181,7 +181,7 @@
182182 $image = wfFindFile( $imageTitle );
183183
184184 // if it is multipage, we use the page order of the file
185 - if ( $image && $image->exists() && $image->isMultiPage() ) {
 185+ if ( $image && $image->exists() && $image->isMultipage() ) {
186186 $name = $image->getTitle()->getText();
187187 $index_name = "$index_namespace:$name";
188188
@@ -209,7 +209,7 @@
210210 $imageTitle = Title::makeTitleSafe( NS_IMAGE, $index_title->getText() );
211211 $image = wfFindFile( $imageTitle );
212212 // if multipage, we use the page order, but we should read pagenum from the index
213 - if ( $image && $image->exists() && $image->isMultiPage() ) {
 213+ if ( $image && $image->exists() && $image->isMultipage() ) {
214214 $pagenr = 1;
215215 $parts = explode( '/', $title->getText() );
216216 if ( count( $parts ) > 1 ) {
@@ -522,7 +522,7 @@
523523 global $wgUser;
524524 $index_namespace = $this->index_namespace;
525525 $image = $imgpage->img;
526 - if ( !$image->isMultiPage() ) {
 526+ if ( !$image->isMultipage() ) {
527527 return true;
528528 }
529529 $sk = $wgUser->getSkin();
@@ -702,7 +702,7 @@
703703 }
704704
705705 $image = wfFindFile( $imageTitle );
706 - if ( !( $image && $image->isMultiPage() && $image->pageCount() ) ) {
 706+ if ( !( $image && $image->isMultipage() && $image->pageCount() ) ) {
707707 return '<strong class="error">' . wfMsgForContent( 'proofreadpage_nosuch_file' ) . '</strong>';
708708 }
709709
@@ -797,7 +797,7 @@
798798 return '<strong class="error">' . wfMsgForContent( 'proofreadpage_nosuch_file' ) . '</strong>';
799799 }
800800 $image = wfFindFile( $imageTitle );
801 - if ( !( $image && $image->isMultiPage() && $image->pageCount() ) ) {
 801+ if ( !( $image && $image->isMultipage() && $image->pageCount() ) ) {
802802 return '<strong class="error">' . wfMsgForContent( 'proofreadpage_nosuch_file' ) . '</strong>';
803803 }
804804 $count = $image->pageCount();
@@ -1390,7 +1390,7 @@
13911391 $imageTitle = Title::makeTitleSafe( NS_IMAGE, $index_title->getText() );
13921392 if ( $imageTitle ) {
13931393 $image = wfFindFile( $imageTitle );
1394 - if ( $image && $image->isMultiPage() && $image->pageCount() ) {
 1394+ if ( $image && $image->isMultipage() && $image->pageCount() ) {
13951395 $n = $image->pageCount();
13961396 for ( $i = 1; $i <= $n; $i++ ) {
13971397 $page = $dbr->strencode( $index_title->getDBKey() . '/' . $i );

Status & tagging log