Setting language on export to 'und' if not defined
parent
7cb2ebe17c
commit
f207c3be9b
|
@ -1251,7 +1251,9 @@ Class H5PExport {
|
||||||
// Build h5p.json
|
// Build h5p.json
|
||||||
$h5pJson = array (
|
$h5pJson = array (
|
||||||
'title' => $content['title'],
|
'title' => $content['title'],
|
||||||
'language' => $content['language'],
|
// TODO - stop using 'und', this is not the preferred way.
|
||||||
|
// Either remove language from the json if not existing, or use "language": null
|
||||||
|
'language' => isset($content['language']) ? $content['language'] : 'und',
|
||||||
'mainLibrary' => $content['library']['name'],
|
'mainLibrary' => $content['library']['name'],
|
||||||
'embedTypes' => $embedTypes,
|
'embedTypes' => $embedTypes,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue