X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpUploads.php;h=5b446d8347fa61cbc48bf150287980b476bc432a;hb=c292cfd90f1b9f2939b6bc1e19e15700a87a037c;hp=64884d527b09112bec33b03e856510fa057cbfe1;hpb=ca2c2c0f4fdd633779ce1d48d09645275b0e5827;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 64884d527b..5b446d8347 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -99,7 +99,7 @@ By default, outputs relative paths against the parent directory of $wgUploadDire function fetchLocal( $shared ) { $dbr = $this->getDB( DB_SLAVE ); $result = $dbr->select( 'image', - array( 'img_name' ), + [ 'img_name' ], '', __METHOD__ ); @@ -111,7 +111,7 @@ By default, outputs relative paths against the parent directory of $wgUploadDire function outputItem( $name, $shared ) { $file = wfFindFile( $name ); if ( $file && $this->filterItem( $file, $shared ) ) { - $filename = $file->getPath(); + $filename = $file->getLocalRefPath(); $rel = wfRelativePath( $filename, $this->mBasePath ); $this->output( "$rel\n" ); } else {