HFP-2654 Add defaultLanguage to exported fields
parent
32b0840ca6
commit
801f3f33c3
|
@ -1671,7 +1671,7 @@ Class H5PExport {
|
|||
'embedTypes' => $embedTypes
|
||||
);
|
||||
|
||||
foreach(array('authors', 'source', 'license', 'licenseVersion', 'licenseExtras' ,'yearFrom', 'yearTo', 'changes', 'authorComments') as $field) {
|
||||
foreach(array('authors', 'source', 'license', 'licenseVersion', 'licenseExtras' ,'yearFrom', 'yearTo', 'changes', 'authorComments', 'defaultLanguage') as $field) {
|
||||
if (isset($content['metadata'][$field]) && $content['metadata'][$field] !== '') {
|
||||
if (($field !== 'authors' && $field !== 'changes') || (count($content['metadata'][$field]) > 0)) {
|
||||
$h5pJson[$field] = json_decode(json_encode($content['metadata'][$field], TRUE));
|
||||
|
|
Loading…
Reference in New Issue