X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexport%2FXmlDumpWriter.php;h=c46eb61ca36d3d757e27303d969012663bea1f0e;hp=990f16dca060ce9c88b49f6a082dbacefc7839bc;hb=7a836958be6a698a61eef4d166d9fecd7a909e8d;hpb=802c199d0bd80ff0f4d730c61fd58cbf08a52d8d diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 990f16dca0..c46eb61ca3 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -403,7 +403,7 @@ class XmlDumpWriter { if ( $file->isDeleted( File::DELETED_COMMENT ) ) { $comment = Xml::element( 'comment', [ 'deleted' => 'deleted' ] ); } else { - $comment = Xml::elementClean( 'comment', null, $file->getDescription() ); + $comment = Xml::elementClean( 'comment', null, strval( $file->getDescription() ) ); } return " \n" . $this->writeTimestamp( $file->getTimestamp() ) .