X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckBadRedirects.php;h=6eafc96ec5ec7765a6062f8e45990ceee0909df6;hb=6f2924af676a9f96e9f0cdf590dadfa498d9d527;hp=985df56ec76b5c4b305c134329c5c173cdbebdcd;hpb=7ed96f4de2411d21cce4572e1fac7d3a8d2d0b77;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkBadRedirects.php b/maintenance/checkBadRedirects.php index 985df56ec7..6eafc96ec5 100644 --- a/maintenance/checkBadRedirects.php +++ b/maintenance/checkBadRedirects.php @@ -36,11 +36,11 @@ class CheckBadRedirects extends Maintenance { public function execute() { $this->output( "Fetching redirects...\n" ); - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $result = $dbr->select( - array( 'page' ), - array( 'page_namespace', 'page_title', 'page_latest' ), - array( 'page_is_redirect' => 1 ) ); + [ 'page' ], + [ 'page_namespace', 'page_title', 'page_latest' ], + [ 'page_is_redirect' => 1 ] ); $count = $result->numRows(); $this->output( "Found $count redirects.\n" .