r88148 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88147‎ | r88148 | r88149 >
Date:10:43, 15 May 2011
Author:btongminh
Status:ok
Tags:
Comment:
Follow-up r87176 use wfLocalFile instead of wfFindFile
Modified paths:
  • /trunk/phase3/includes/Export.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Export.php
@@ -602,8 +602,8 @@
603603 */
604604 function writeUploads( $row, $dumpContents = false ) {
605605 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() ) {
608608 $out = '';
609609 foreach ( array_reverse( $img->getHistory() ) as $ver ) {
610610 $out .= $this->writeUpload( $ver, $dumpContents );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87176Add --include-files option to dumpBackup.php to include the uploaded files in...btongminh21:35, 30 April 2011

Status & tagging log