X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FdumpRev.php;h=437bfcdefc7ac27119c28a6d10616274d4957360;hb=1dd2e07276e1deaf431ddb01c92111038f9e2cd6;hp=dcb76e313c2e4945017ed19f511f91d426bbd36a;hpb=04fdc78370dbc042116488d6826e19bf3910273b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index dcb76e313c..437bfcdefc 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -36,11 +36,11 @@ class DumpRev extends Maintenance { } public function execute() { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $row = $dbr->selectRow( - array( 'text', 'revision' ), - array( 'old_flags', 'old_text' ), - array( 'old_id=rev_text_id', 'rev_id' => $this->getArg() ) + [ 'text', 'revision' ], + [ 'old_flags', 'old_text' ], + [ 'old_id=rev_text_id', 'rev_id' => $this->getArg() ] ); if ( !$row ) { $this->error( "Row not found", true );