X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FdumpRev.php;h=39e06a3a61b25ac50591790d74ab30ba00351e59;hb=aa838b52de9624cf10abe92758c7bbb1416d3001;hp=577201c5280a28d9de8d2938c1cc0a8205b27715;hpb=b4cf6b43661d94c218f4fa6ab7dfc606378a08fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index 577201c528..39e06a3a61 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -21,7 +21,7 @@ * @ingroup Maintenance ExternalStorage */ -require_once( __DIR__ . '/../Maintenance.php' ); +require_once __DIR__ . '/../Maintenance.php'; /** * Maintenance script that gets the text of a revision, @@ -36,11 +36,11 @@ class DumpRev extends Maintenance { } public function execute() { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = $this->getDB( DB_SLAVE ); $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 );