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=b4df20fe01033b87bec3dca1399f4214eb6f0558;hpb=708f51c2c60b970549f463776faa38318fd11d21;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 );