X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/supprimer.php?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=b4df20fe01033b87bec3dca1399f4214eb6f0558;hb=5f2cb872b587a601a6a07624802e7b56d76e2e95;hp=5b446d8347fa61cbc48bf150287980b476bc432a;hpb=b3307c8a5a6b1ea0820b91687f83aaf23f8cd29f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 5b446d8347..b4df20fe01 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -29,7 +29,7 @@ require_once __DIR__ . '/Maintenance.php'; * * @ingroup Maintenance */ -class UploadDumper extends Maintenance { +class DumpUploads extends Maintenance { public function __construct() { parent::__construct(); $this->addDescription( 'Generates list of uploaded files which can be fed to tar or similar. @@ -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 = DumpUploads::class; require_once RUN_MAINTENANCE_IF_MAIN;