r98472 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98471‎ | r98472 | r98473 >
Date:22:11, 29 September 2011
Author:reedy
Status:ok
Tags:
Comment:
Another reverse merge artefact from r98467
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -3108,7 +3108,7 @@
31093109 $errors = array();
31103110
31113111 // wfFindFile( $nt ) / wfLocalFile( $nt ) is not allowed until below
3112 -
 3112+
31133113 $file = wfLocalFile( $this );
31143114 if ( $file->exists() ) {
31153115 if ( $nt->getText() != wfStripIllegalFilenameChars( $nt->getText() ) ) {
@@ -3118,14 +3118,14 @@
31193119 $errors[] = array( 'imagetypemismatch' );
31203120 }
31213121 }
3122 -
 3122+
31233123 if ( $nt->getNamespace() != NS_FILE ) {
31243124 $errors[] = array( 'imagenocrossnamespace' );
3125 - // From here we want to do checks on a file object, so if we can't
 3125+ // From here we want to do checks on a file object, so if we can't
31263126 // create one, we must return.
31273127 return $errors;
31283128 }
3129 -
 3129+
31303130 // wfFindFile( $nt ) / wfLocalFile( $nt ) is allowed below here
31313131
31323132 $destFile = wfLocalFile( $nt );
@@ -3368,7 +3368,6 @@
33693369 array( 'rc_timestamp' => $rcts, 'rc_namespace' => $newns, 'rc_title' => $newdbk, 'rc_new' => 1 ),
33703370 __METHOD__
33713371 );
3372 - __METHOD__ );
33733372 }
33743373
33753374 # Save a null revision in the page's history notifying of the move

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98467Back out r95396 and friendsreedy22:08, 29 September 2011

Status & tagging log