MDL-66297 mod_forum: Added word/char count column headings to export

This commit is contained in:
Michael Hawkins
2019-11-08 11:13:37 +08:00
parent 64da1d093a
commit d3ae8d42ea
+2 -1
View File
@@ -114,7 +114,8 @@ if ($form->is_cancelled()) {
$humandates = !empty($data->humandates);
$fields = ['id', 'discussion', 'parent', 'userid', 'created', 'modified', 'mailed', 'subject', 'message',
'messageformat', 'messagetrust', 'attachment', 'totalscore', 'mailnow', 'deleted', 'privatereplyto'];
'messageformat', 'messagetrust', 'attachment', 'totalscore', 'mailnow', 'deleted', 'privatereplyto',
'wordcount', 'charcount'];
$datamapper = $legacydatamapperfactory->get_post_data_mapper();
$exportdata = new ArrayObject($datamapper->to_legacy_objects($posts));