Merge "DumpUploads: output local path instead of mwstore path"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 17 Jun 2016 02:12:27 +0000 (02:12 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 17 Jun 2016 02:12:27 +0000 (02:12 +0000)
maintenance/dumpUploads.php

index ec276c1..5b446d8 100644 (file)
@@ -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 {