Index: trunk/phase3/includes/Export.php |
— | — | @@ -602,8 +602,8 @@ |
603 | 603 | */ |
604 | 604 | function writeUploads( $row, $dumpContents = false ) { |
605 | 605 | if ( $row->page_namespace == NS_IMAGE ) { |
606 | | - $img = wfFindFile( $row->page_title ); |
607 | | - if ( $img ) { |
| 606 | + $img = wfLocalFile( $row->page_title ); |
| 607 | + if ( $img && $img->exists() ) { |
608 | 608 | $out = ''; |
609 | 609 | foreach ( array_reverse( $img->getHistory() ) as $ver ) { |
610 | 610 | $out .= $this->writeUpload( $ver, $dumpContents ); |