Fix use filtered instead of params in .h5p files

pull/61/head
Frode Petterson 2019-03-26 16:43:11 +01:00
parent 7a85c115db
commit 052ad0ea81
1 changed files with 2 additions and 1 deletions

View File

@ -1783,7 +1783,7 @@ Class H5PExport {
} }
// Update content.json with content from database // Update content.json with content from database
file_put_contents("{$tmpPath}/content/content.json", $content['params']); file_put_contents("{$tmpPath}/content/content.json", $content['filtered']);
// Make embedType into an array // Make embedType into an array
$embedTypes = explode(', ', $content['embedType']); $embedTypes = explode(', ', $content['embedType']);
@ -2205,6 +2205,7 @@ class H5PCore {
if ($this->exportEnabled) { if ($this->exportEnabled) {
// Recreate export file // Recreate export file
$exporter = new H5PExport($this->h5pF, $this); $exporter = new H5PExport($this->h5pF, $this);
$content['filtered'] = $params;
$exporter->createExportFile($content); $exporter->createExportFile($content);
} }