Merge "rdbms: clean up DBO_TRX behavior for onTransaction* callbacks"
[lhc/web/wiklou.git] / maintenance / dumpLinks.php
index 7139786..6904953 100644 (file)
@@ -44,17 +44,17 @@ class DumpLinks extends Maintenance {
        }
 
        public function execute() {
-               $dbr = $this->getDB( DB_SLAVE );
-               $result = $dbr->select( array( 'pagelinks', 'page' ),
-                       array(
+               $dbr = $this->getDB( DB_REPLICA );
+               $result = $dbr->select( [ 'pagelinks', 'page' ],
+                       [
                                'page_id',
                                'page_namespace',
                                'page_title',
                                'pl_namespace',
-                               'pl_title' ),
-                       array( 'page_id=pl_from' ),
+                               'pl_title' ],
+                       [ 'page_id=pl_from' ],
                        __METHOD__,
-                       array( 'ORDER BY' => 'page_id' ) );
+                       [ 'ORDER BY' => 'page_id' ] );
 
                $lastPage = null;
                foreach ( $result as $row ) {
@@ -75,5 +75,5 @@ class DumpLinks extends Maintenance {
        }
 }
 
-$maintClass = "DumpLinks";
+$maintClass = DumpLinks::class;
 require_once RUN_MAINTENANCE_IF_MAIN;