metadataSettings returned as JSON, not string
parent
7762f903c8
commit
e75745f0db
|
@ -94,6 +94,9 @@ class H5PDevelopment {
|
||||||
// Save/update library.
|
// Save/update library.
|
||||||
$this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE);
|
$this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE);
|
||||||
|
|
||||||
|
// Need to decode it again, since it is served from here.
|
||||||
|
$library['metadataSettings'] = json_decode($library['metadataSettings']);
|
||||||
|
|
||||||
$library['path'] = 'development/' . $contents[$i];
|
$library['path'] = 'development/' . $contents[$i];
|
||||||
$this->libraries[H5PDevelopment::libraryToString($library['machineName'], $library['majorVersion'], $library['minorVersion'])] = $library;
|
$this->libraries[H5PDevelopment::libraryToString($library['machineName'], $library['majorVersion'], $library['minorVersion'])] = $library;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue