dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c0a6f6
)
Follow-up r87176 use wfLocalFile instead of wfFindFile
author
Bryan Tong Minh
<btongminh@users.mediawiki.org>
Sun, 15 May 2011 10:43:51 +0000
(10:43 +0000)
committer
Bryan Tong Minh
<btongminh@users.mediawiki.org>
Sun, 15 May 2011 10:43:51 +0000
(10:43 +0000)
includes/Export.php
patch
|
blob
|
history
diff --git
a/includes/Export.php
b/includes/Export.php
index
ceda80b
..
2c8a748
100644
(file)
--- a/
includes/Export.php
+++ b/
includes/Export.php
@@
-602,8
+602,8
@@
class XmlDumpWriter {
*/
function writeUploads( $row, $dumpContents = false ) {
if ( $row->page_namespace == NS_IMAGE ) {
- $img = wf
Find
File( $row->page_title );
- if ( $img ) {
+ $img = wf
Local
File( $row->page_title );
+ if ( $img
&& $img->exists()
) {
$out = '';
foreach ( array_reverse( $img->getHistory() ) as $ver ) {
$out .= $this->writeUpload( $ver, $dumpContents );