Try to fix some other broken-looking legacy maintenance script options
[lhc/web/wiklou.git] / maintenance / storage / dumpRev.php
index 577201c..39e06a3 100644 (file)
@@ -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 );