X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=c4ca056c59bf7528e16d4934737506310967eb99;hb=cae285042e551d3c884b998600da08424cc8ba47;hp=b4df20fe01033b87bec3dca1399f4214eb6f0558;hpb=4077b57759756ecd0d25427ec9598feb28a28ac1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index b4df20fe01..c4ca056c59 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -21,6 +21,8 @@ * @ingroup Maintenance */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/Maintenance.php'; /** @@ -82,7 +84,7 @@ By default, outputs relative paths against the parent directory of $wgUploadDire $sql = "SELECT DISTINCT il_to, img_name FROM $imagelinks - LEFT OUTER JOIN $image + LEFT JOIN $image ON il_to=img_name"; $result = $dbr->query( $sql ); @@ -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 );