X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcleanupCaps.php;h=2c81adf070cd3d5dea794f3c8d056c6d3cf75fb2;hp=20be9fd1d7df4c3eb4fa4a50af0462d2d81ea5f3;hb=e65f8ac5110804067366f9f239c13f4f29b66c3d;hpb=781049f1be8dc4f963a6cc17eba57d7143e71822 diff --git a/maintenance/cleanupCaps.php b/maintenance/cleanupCaps.php index 20be9fd1d7..2c81adf070 100644 --- a/maintenance/cleanupCaps.php +++ b/maintenance/cleanupCaps.php @@ -160,9 +160,10 @@ class CleanupCaps extends TableCleanup { $this->output( "\"$display\" -> \"$targetDisplay\": DRY RUN, NOT MOVED\n" ); $ok = 'OK'; } else { - $mp = new MovePage( $current, $target ); + $mp = MediaWikiServices::getInstance()->getMovePageFactory() + ->newMovePage( $current, $target ); $status = $mp->move( $this->user, $reason, $createRedirect ); - $ok = $status->isOK() ? 'OK' : $status->getWikiText( false, false, 'en' ); + $ok = $status->isOK() ? 'OK' : $status->getMessage( false, false, 'en' )->text(); $this->output( "\"$display\" -> \"$targetDisplay\": $ok\n" ); }