From: Ariel T. Glenn Date: Thu, 8 Aug 2019 13:11:36 +0000 (+0300) Subject: replace wfGetDB (discouraged for use) with Maintenance::getDB in dumps scripts X-Git-Tag: 1.34.0-rc.0~648 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=0c86bdec1eb5c9e6e4e2c5d5fad1cb00025307ed;p=lhc%2Fweb%2Fwiklou.git replace wfGetDB (discouraged for use) with Maintenance::getDB in dumps scripts Bug: T228772 Change-Id: I0d9448b2565481f61d927b2d58f44bddbf358ed8 --- diff --git a/maintenance/includes/BackupDumper.php b/maintenance/includes/BackupDumper.php index 08eade934f..358dc21e13 100644 --- a/maintenance/includes/BackupDumper.php +++ b/maintenance/includes/BackupDumper.php @@ -316,7 +316,7 @@ abstract class BackupDumper extends Maintenance { $dbr = $this->forcedDb; if ( $this->forcedDb === null ) { - $dbr = wfGetDB( DB_REPLICA ); + $dbr = $this->getDB( DB_REPLICA ); } $this->maxCount = $dbr->selectField( $table, "MAX($field)", '', __METHOD__ ); $this->startTime = microtime( true );