X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FdumpUploads.php;h=8d63fe55f90784bcc9642adec3555de95d6c3c9a;hb=fea3bbcdae4f052f769ab466df6e1f5d47d1383c;hp=5b446d8347fa61cbc48bf150287980b476bc432a;hpb=b46368a94cc411b8de9a6ad41f3767e729251b5c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 5b446d8347..8d63fe55f9 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' ], '',