X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=7f0e340a4ad9c622dc6338f47d34a8d502f6d8cc;hb=17ec5d1aff52a7f81df57a110bd92462a73a132a;hp=5b441f90f1fe3d6244a87d2913b8f6562c9712b8;hpb=6e62381aaa2e0d0ee572e3827800d05d9a5c67a4;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 )