http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76793

Revision: 76793
Author:   thomasv
Date:     2010-11-16 14:09:15 +0000 (Tue, 16 Nov 2010)
Log Message:
-----------
fix capitalization : the p is not capitalized in File::isMultipage

Modified Paths:
--------------
    trunk/extensions/ProofreadPage/ProofreadPage_body.php

Modified: trunk/extensions/ProofreadPage/ProofreadPage_body.php
===================================================================
--- trunk/extensions/ProofreadPage/ProofreadPage_body.php       2010-11-16 
14:06:21 UTC (rev 76792)
+++ trunk/extensions/ProofreadPage/ProofreadPage_body.php       2010-11-16 
14:09:15 UTC (rev 76793)
@@ -181,7 +181,7 @@
                $image = wfFindFile( $imageTitle );
 
                // if it is multipage, we use the page order of the file
-               if ( $image && $image->exists() && $image->isMultiPage() ) {
+               if ( $image && $image->exists() && $image->isMultipage() ) {
                        $name = $image->getTitle()->getText();
                        $index_name = "$index_namespace:$name";
 
@@ -209,7 +209,7 @@
                $imageTitle = Title::makeTitleSafe( NS_IMAGE, 
$index_title->getText() );
                $image = wfFindFile( $imageTitle );
                // if multipage, we use the page order, but we should read 
pagenum from the index
-               if ( $image && $image->exists() && $image->isMultiPage() ) {
+               if ( $image && $image->exists() && $image->isMultipage() ) {
                        $pagenr = 1;
                        $parts = explode( '/', $title->getText() );
                        if ( count( $parts ) > 1 ) {
@@ -522,7 +522,7 @@
                global $wgUser;
                $index_namespace = $this->index_namespace;
                $image = $imgpage->img;
-               if ( !$image->isMultiPage() ) {
+               if ( !$image->isMultipage() ) {
                        return true;
                }
                $sk = $wgUser->getSkin();
@@ -702,7 +702,7 @@
                }
 
                $image = wfFindFile( $imageTitle );
-               if ( !( $image && $image->isMultiPage() && $image->pageCount() 
) ) {
+               if ( !( $image && $image->isMultipage() && $image->pageCount() 
) ) {
                        return '<strong class="error">' . wfMsgForContent( 
'proofreadpage_nosuch_file' ) . '</strong>';
                }
 
@@ -797,7 +797,7 @@
                                        return '<strong class="error">' . 
wfMsgForContent( 'proofreadpage_nosuch_file' ) . '</strong>';
                                }
                                $image = wfFindFile( $imageTitle );
-                               if ( !( $image && $image->isMultiPage() && 
$image->pageCount() ) ) {
+                               if ( !( $image && $image->isMultipage() && 
$image->pageCount() ) ) {
                                        return '<strong class="error">' . 
wfMsgForContent( 'proofreadpage_nosuch_file' ) . '</strong>';
                                }
                                $count = $image->pageCount();
@@ -1390,7 +1390,7 @@
                        $imageTitle = Title::makeTitleSafe( NS_IMAGE, 
$index_title->getText() );
                        if ( $imageTitle ) {
                                $image = wfFindFile( $imageTitle );
-                               if ( $image && $image->isMultiPage() && 
$image->pageCount() ) {
+                               if ( $image && $image->isMultipage() && 
$image->pageCount() ) {
                                        $n = $image->pageCount();
                                        for ( $i = 1; $i <= $n; $i++ ) {
                                                $page = $dbr->strencode( 
$index_title->getDBKey() . '/' . $i );


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to