* namespaceDupes.php no longer dies when coming across an illegal title
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 26 Nov 2007 20:26:00 +0000 (20:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 26 Nov 2007 20:26:00 +0000 (20:26 +0000)
RELEASE-NOTES
maintenance/namespaceDupes.php

index 477192e..621b754 100644 (file)
@@ -193,7 +193,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Make sure that the correct log entries are shown on Special:Userrights even
   for users with special characters in their names
 * The number of watching users in watchlists was always reported as 1
-  
+* namespaceDupes.php no longer dies when coming across an illegal title
+
+
 == Parser changes in 1.12 ==
 
 The parser pass order has changed from
index 323aad5..4494aab 100644 (file)
@@ -175,6 +175,16 @@ class NamespaceConflictChecker {
 
        function reportConflict( $row, $suffix ) {
                $newTitle = Title::makeTitleSafe( $row->namespace, $row->title );
+               if( !$newTitle ) {
+                       // Title is also an illegal title...
+                       // For the moment we'll let these slide to cleanupTitles or whoever.
+                       printf( "... %d (0,\"%s\")\n",
+                               $row->id,
+                               $row->oldtitle );
+                       echo "...  *** cannot resolve automatically; illegal title ***\n";
+                       return false;
+               }
+               
                printf( "... %d (0,\"%s\") -> (%d,\"%s\") [[%s]]\n",
                        $row->id,
                        $row->oldtitle,