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
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 {