X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupCaps.php;h=693125994cd24045b426b573f589b789b1491773;hb=32e56eefaa1d9c0a832f9e32db4f9bdaad28f02e;hp=a79c2d35e4bfadd8488252de0eaf1922c628a3a3;hpb=829b2e7d0169ba977cec42df6ee83eb60de51045;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupCaps.php b/maintenance/cleanupCaps.php index a79c2d35e4..693125994c 100644 --- a/maintenance/cleanupCaps.php +++ b/maintenance/cleanupCaps.php @@ -53,16 +53,16 @@ class CapsCleanup extends TableCleanup { $this->error( "\$wgCapitalLinks is on -- no need for caps links cleanup.", true ); } - $this->user = User::newSystemUser( 'Conversion script', array( 'steal' => true ) ); + $this->user = User::newSystemUser( 'Conversion script', [ 'steal' => true ] ); $this->namespace = intval( $this->getOption( 'namespace', 0 ) ); $this->dryrun = $this->hasOption( 'dry-run' ); - $this->runTable( array( + $this->runTable( [ 'table' => 'page', - 'conds' => array( 'page_namespace' => $this->namespace ), + 'conds' => [ 'page_namespace' => $this->namespace ], 'index' => 'page_id', - 'callback' => 'processRow' ) ); + 'callback' => 'processRow' ] ); } protected function processRow( $row ) { @@ -92,7 +92,7 @@ class CapsCleanup extends TableCleanup { } else { $mp = new MovePage( $current, $target ); $status = $mp->move( $this->user, 'Converting page titles to lowercase', true ); - $ok = $status->isOK() ? 'OK' : $status->getWikiText(); + $ok = $status->isOK() ? 'OK' : $status->getWikiText( false, false, 'en' ); $this->output( "\"$display\" -> \"$targetDisplay\": $ok\n" ); } if ( $ok === true ) {