X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexport%2FXmlDumpWriter.php;h=e1c12de1b9ce359624a2397c50b26c739fad6557;hp=990f16dca060ce9c88b49f6a082dbacefc7839bc;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hpb=2480aae0c97d822e10b50619e7b48b25c45af073 diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 990f16dca0..e1c12de1b9 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -219,7 +219,7 @@ class XmlDumpWriter { if ( isset( $row->rev_deleted ) && ( $row->rev_deleted & Revision::DELETED_COMMENT ) ) { $out .= " " . Xml::element( 'comment', [ 'deleted' => 'deleted' ] ) . "\n"; } else { - $comment = CommentStore::newKey( 'rev_comment' )->getComment( $row )->text; + $comment = CommentStore::getStore()->getComment( 'rev_comment', $row )->text; if ( $comment != '' ) { $out .= " " . Xml::elementClean( 'comment', [], strval( $comment ) ) . "\n"; } @@ -303,7 +303,7 @@ class XmlDumpWriter { if ( $row->log_deleted & LogPage::DELETED_COMMENT ) { $out .= " " . Xml::element( 'comment', [ 'deleted' => 'deleted' ] ) . "\n"; } else { - $comment = CommentStore::newKey( 'log_comment' )->getComment( $row )->text; + $comment = CommentStore::getStore()->getComment( 'log_comment', $row )->text; if ( $comment != '' ) { $out .= " " . Xml::elementClean( 'comment', null, strval( $comment ) ) . "\n"; } @@ -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() ) .