aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/dumpUploads.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/dumpUploads.php')
-rw-r--r--maintenance/dumpUploads.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php
index a5bc6cc0bce4..c4ca056c59bf 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 );