Make cleanupTitles.php skip file pages (a bit late to fix that now, but oh well...)
authorIlmari Karonen <vyznev@users.mediawiki.org>
Tue, 16 Dec 2008 00:34:38 +0000 (00:34 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Tue, 16 Dec 2008 00:34:38 +0000 (00:34 +0000)
maintenance/cleanupTitles.php

index a699182..7a5dada 100644 (file)
@@ -41,6 +41,11 @@ class TitleCleanup extends TableCleanup {
        }
 
        function processPage( $row ) {
+               if( $row->page_namespace == NS_FILE ) {
+                       // use cleanupImages.php for file pages
+                       return $this->progress( 0 );
+               }
+
                $current = Title::makeTitle( $row->page_namespace, $row->page_title );
                $display = $current->getPrefixedText();