From: Ilmari Karonen Date: Tue, 16 Dec 2008 00:34:38 +0000 (+0000) Subject: Make cleanupTitles.php skip file pages (a bit late to fix that now, but oh well...) X-Git-Tag: 1.31.0-rc.0~43947 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=52ff7cbdf5981038005c3a6b085228fd077c0509;p=lhc%2Fweb%2Fwiklou.git Make cleanupTitles.php skip file pages (a bit late to fix that now, but oh well...) --- diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php index a699182903..7a5dadadeb 100644 --- a/maintenance/cleanupTitles.php +++ b/maintenance/cleanupTitles.php @@ -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();