Follow up r45335
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 Jan 2009 19:55:53 +0000 (19:55 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 Jan 2009 19:55:53 +0000 (19:55 +0000)
maintenance/namespaceDupes.php

index 92296eb..fcc7d3a 100644 (file)
@@ -195,7 +195,7 @@ class NamespaceConflictChecker {
 
        function reportConflict( $row, $suffix ) {
                $newTitle = Title::makeTitleSafe( $row->namespace, $row->title );
-               if( !$newTitle ) {
+               if( is_null($newTitle) || !$newTitle->canExist() ) {
                        // Title is also an illegal title...
                        // For the moment we'll let these slide to cleanupTitles or whoever.
                        printf( "... %d (0,\"%s\")\n",