X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=c4ca056c59bf7528e16d4934737506310967eb99;hb=629bb43871ba3b8afb12be9c484d93c44898610e;hp=a5bc6cc0bce467cc7dfc0f56a39cf24361c418dc;hpb=8f242b26e7f14aea198cf72f85c42f767bc095af;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 );