X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=4bfc57464ab9b55616262f041a42f03ffbba3d3f;hb=590e94d474fdb1ea9daa3d96ace797d6d4108b60;hp=5b446d8347fa61cbc48bf150287980b476bc432a;hpb=6cc415a26e219af87661f8a1de7e758a065a1060;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 5b446d8347..4bfc57464a 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -76,7 +76,7 @@ By default, outputs relative paths against the parent directory of $wgUploadDire * @param bool $shared True to pass shared-dir settings to hash func */ function fetchUsed( $shared ) { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $image = $dbr->tableName( 'image' ); $imagelinks = $dbr->tableName( 'imagelinks' ); @@ -97,7 +97,7 @@ By default, outputs relative paths against the parent directory of $wgUploadDire * @param bool $shared True to pass shared-dir settings to hash func */ function fetchLocal( $shared ) { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $result = $dbr->select( 'image', [ 'img_name' ], '', @@ -124,5 +124,5 @@ By default, outputs relative paths against the parent directory of $wgUploadDire } } -$maintClass = "UploadDumper"; +$maintClass = UploadDumper::class; require_once RUN_MAINTENANCE_IF_MAIN;