X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=maintenance%2Fstorage%2FdumpRev.php;h=437bfcdefc7ac27119c28a6d10616274d4957360;hb=9ec545c3189dd14ce2c2de0b113edb42fa747217;hp=dcb76e313c2e4945017ed19f511f91d426bbd36a;hpb=bee82be112de5180a255655958b151d11340182e;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 );