X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FdumpLinks.php;h=6904953fe73b430191e897f5612ea70eddb45239;hp=1faeb8ae1918460d4c993061e59288a2207a1d23;hb=9adf80d25343b7377fa41fe13cecfdddace91e31;hpb=ae69acacf567077b3f49d1fe6c3f3770e72a9093 diff --git a/maintenance/dumpLinks.php b/maintenance/dumpLinks.php index 1faeb8ae19..6904953fe7 100644 --- a/maintenance/dumpLinks.php +++ b/maintenance/dumpLinks.php @@ -44,7 +44,7 @@ class DumpLinks extends Maintenance { } public function execute() { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $result = $dbr->select( [ 'pagelinks', 'page' ], [ 'page_id', @@ -75,5 +75,5 @@ class DumpLinks extends Maintenance { } } -$maintClass = "DumpLinks"; +$maintClass = DumpLinks::class; require_once RUN_MAINTENANCE_IF_MAIN;