X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpLinks.php;h=6904953fe73b430191e897f5612ea70eddb45239;hb=a3f63785eebfa2f729d42da880b6722736ef1e7d;hp=7139786017cddb174b2d7d399ff51420db412d56;hpb=4dc3ac1c375b3d2eb6172dfef8fdebe71b8c5f43;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpLinks.php b/maintenance/dumpLinks.php index 7139786017..6904953fe7 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 ) { @@ -75,5 +75,5 @@ class DumpLinks extends Maintenance { } } -$maintClass = "DumpLinks"; +$maintClass = DumpLinks::class; require_once RUN_MAINTENANCE_IF_MAIN;