Merge "Correct two mistaken htmlform annotations"
[lhc/web/wiklou.git] / maintenance / dumpUploads.php
index 64884d5..5b446d8 100644 (file)
@@ -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 {