function fetchLocal( $shared ) {
$dbr = $this->getDB( DB_SLAVE );
$result = $dbr->select( 'image',
- array( 'img_name' ),
+ [ 'img_name' ],
'',
__METHOD__ );
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 {