X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FExport.php;h=98de4c001b6f5536de3ee4c7cd01db3259890054;hb=876bddf6376fe75952735ee3f231f557c2da48d0;hp=a26e853effb4e4533091cbb56a72eed21a7478b0;hpb=4c6f3d83245520ac7e853dd71cd2a86de51f2fb9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Export.php b/includes/Export.php index a26e853eff..98de4c001b 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -824,10 +824,13 @@ class XmlDumpWriter { $archiveName = ''; } if ( $dumpContents ) { + $be = $file->getRepo()->getBackend(); # 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 = ' ' . - chunk_split( base64_encode( file_get_contents( $file->getPath() ) ) ) . + chunk_split( base64_encode( + $be->getFileContents( array( 'src' => $file->getPath() ) ) ) ) . " \n"; } else { $contents = '';