X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupCaps.php;h=da241e533769265b2912a4ea62a7e5dc152e0a13;hb=e6e932d9df9fcd2369822852c1453de2fc3d93be;hp=20be9fd1d7df4c3eb4fa4a50af0462d2d81ea5f3;hpb=9f5c319b091fc84796c1e841699cc70c7566bef7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupCaps.php b/maintenance/cleanupCaps.php index 20be9fd1d7..da241e5337 100644 --- a/maintenance/cleanupCaps.php +++ b/maintenance/cleanupCaps.php @@ -160,7 +160,8 @@ 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' ); $this->output( "\"$display\" -> \"$targetDisplay\": $ok\n" );