X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpLinks.php;h=ff4e8945025a42b01afec9608dadb7c90c09018d;hb=c3f7cebf6950a68eb5aaea4ca4c040e7bc99e614;hp=7139786017cddb174b2d7d399ff51420db412d56;hpb=3c18e32e58d53ab38d1dd52d00f248ddef435ebd;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpLinks.php b/maintenance/dumpLinks.php index 7139786017..ff4e894502 100644 --- a/maintenance/dumpLinks.php +++ b/maintenance/dumpLinks.php @@ -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 ) {