dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Expand release notes for Iab02cbd4"
[lhc/web/wiklou.git]
/
includes
/
Export.php
diff --git
a/includes/Export.php
b/includes/Export.php
index
a26e853
..
98de4c0
100644
(file)
--- a/
includes/Export.php
+++ b/
includes/Export.php
@@
-824,10
+824,13
@@
class XmlDumpWriter {
$archiveName = '';
}
if ( $dumpContents ) {
$archiveName = '';
}
if ( $dumpContents ) {
+ $be = $file->getRepo()->getBackend();
# Dump file as base64
# Uses only XML-safe characters, so does not need escaping
# Dump file as base64
# Uses only XML-safe characters, so does not need escaping
+ # @TODO: too bad this loads the contents into memory (script might swap)
$contents = ' <contents encoding="base64">' .
$contents = ' <contents encoding="base64">' .
- chunk_split( base64_encode( file_get_contents( $file->getPath() ) ) ) .
+ chunk_split( base64_encode(
+ $be->getFileContents( array( 'src' => $file->getPath() ) ) ) ) .
" </contents>\n";
} else {
$contents = '';
" </contents>\n";
} else {
$contents = '';