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

This commit is contained in:
Michael Hawkins 2019-11-06 10:08:01 +08:00
parent 64da1d093a
commit d3ae8d42ea

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));