From: Southparkfan Date: Thu, 4 Feb 2016 16:58:45 +0000 (+0100) Subject: DumpUploads: output local path instead of mwstore path X-Git-Tag: 1.31.0-rc.0~6585^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=272d090e07cc749bf8654ede81d3d608cc5dc370;p=lhc%2Fweb%2Fwiklou.git DumpUploads: output local path instead of mwstore path Since a while, getPath() returns the internal mwstore:// path instead of the real file path. This is not useful for sysadmins that want to backup their images using this script. Bug: T75157 Change-Id: I237d1a138a9d68d3aa4ea60971a2addb35ff5917 --- diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 64884d527b..e79afba376 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -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 {