X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=c4ca056c59bf7528e16d4934737506310967eb99;hb=6aeac32919bc00aba0af0af29b796dcf62f598c1;hp=a5bc6cc0bce467cc7dfc0f56a39cf24361c418dc;hpb=7f2f49ad2368ae27f2d4db69b44c5f997197725e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index a5bc6cc0bc..c4ca056c59 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -21,6 +21,8 @@ * @ingroup Maintenance */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/Maintenance.php'; /** @@ -109,7 +111,7 @@ By default, outputs relative paths against the parent directory of $wgUploadDire } function outputItem( $name, $shared ) { - $file = wfFindFile( $name ); + $file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $name ); if ( $file && $this->filterItem( $file, $shared ) ) { $filename = $file->getLocalRefPath(); $rel = wfRelativePath( $filename, $this->mBasePath );