http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88148
Revision: 88148
Author: btongminh
Date: 2011-05-15 10:43:51 +0000 (Sun, 15 May 2011)
Log Message:
-----------
Follow-up r87176 use wfLocalFile instead of wfFindFile
Modified Paths:
--------------
trunk/phase3/includes/Export.php
Modified: trunk/phase3/includes/Export.php
===================================================================
--- trunk/phase3/includes/Export.php 2011-05-15 10:42:33 UTC (rev 88147)
+++ trunk/phase3/includes/Export.php 2011-05-15 10:43:51 UTC (rev 88148)
@@ -602,8 +602,8 @@
*/
function writeUploads( $row, $dumpContents = false ) {
if ( $row->page_namespace == NS_IMAGE ) {
- $img = wfFindFile( $row->page_title );
- if ( $img ) {
+ $img = wfLocalFile( $row->page_title );
+ if ( $img && $img->exists() ) {
$out = '';
foreach ( array_reverse( $img->getHistory() )
as $ver ) {
$out .= $this->writeUpload( $ver,
$dumpContents );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs