X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=7f0e340a4ad9c622dc6338f47d34a8d502f6d8cc;hb=97af92da48f0d434cf4b541e7a3f2d96619a95b2;hp=5b441f90f1fe3d6244a87d2913b8f6562c9712b8;hpb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php index 5b441f90f1..7f0e340a4a 100644 --- a/maintenance/cleanupTitles.php +++ b/maintenance/cleanupTitles.php @@ -38,15 +38,15 @@ class TitleCleanup extends TableCleanup { public function __construct() { parent::__construct(); $this->addDescription( 'Script to clean up broken, unparseable titles' ); + $this->batchSize = 1000; } /** * @param object $row */ protected function processRow( $row ) { - global $wgContLang; $display = Title::makeName( $row->page_namespace, $row->page_title ); - $verified = $wgContLang->normalize( $display ); + $verified = MediaWikiServices::getInstance()->getContentLanguage()->normalize( $display ); $title = Title::newFromText( $verified ); if ( !is_null( $title )