X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FdumpRev.php;h=5a537aa62748006a7d70d28f71c2b2ac746fa930;hb=refs%2Fheads%2FREL1_31;hp=39e06a3a61b25ac50591790d74ab30ba00351e59;hpb=c340c41b37b5079ba90489f6b212bb8e4642031a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index 39e06a3a61..5a537aa627 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -36,14 +36,14 @@ class DumpRev extends Maintenance { } public function execute() { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $row = $dbr->selectRow( [ 'text', 'revision' ], [ 'old_flags', 'old_text' ], [ 'old_id=rev_text_id', 'rev_id' => $this->getArg() ] ); if ( !$row ) { - $this->error( "Row not found", true ); + $this->fatalError( "Row not found" ); } $flags = explode( ',', $row->old_flags ); @@ -84,5 +84,5 @@ class DumpRev extends Maintenance { } } -$maintClass = "DumpRev"; +$maintClass = DumpRev::class; require_once RUN_MAINTENANCE_IF_MAIN;