r69801 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69800‎ | r69801 | r69802 >
Date:17:11, 23 July 2010
Author:simetrical
Status:ok
Tags:
Comment:
Typo, style fix
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2942,7 +2942,7 @@
29432943 # (so we can undo bad moves right after they're done).
29442944
29452945 if ( 0 != $newid ) { # Target exists; check for validity
2946 - if ( ! $this->isValidMoveTarget( $nt ) ) {
 2946+ if ( !$this->isValidMoveTarget( $nt ) ) {
29472947 $errors[] = array( 'articleexists' );
29482948 }
29492949 } else {
@@ -3422,7 +3422,7 @@
34233423 */
34243424 public function isValidMoveTarget( $nt ) {
34253425 $dbw = wfGetDB( DB_MASTER );
3426 - # Is it an existsing file?
 3426+ # Is it an existing file?
34273427 if ( $nt->getNamespace() == NS_FILE ) {
34283428 $file = wfLocalFile( $nt );
34293429 if ( $file->exists() ) {

Status & tagging log