jenkins-bot has submitted this change and it was merged. Change subject: DumpUploads: output local path instead of mwstore path ......................................................................
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 --- M maintenance/dumpUploads.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Aude: Looks good to me, approved jenkins-bot: Verified diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 64884d5..e79afba 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -111,7 +111,7 @@ 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 { -- To view, visit https://gerrit.wikimedia.org/r/268417 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I237d1a138a9d68d3aa4ea60971a2addb35ff5917 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Southparkfan <southparkfan...@hotmail.com> Gerrit-Reviewer: Aude <aude.w...@gmail.com> Gerrit-Reviewer: Parent5446 <tylerro...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits