diff --git a/h5p-development.class.php b/h5p-development.class.php index 6c891f9..4188d88 100644 --- a/h5p-development.class.php +++ b/h5p-development.class.php @@ -86,6 +86,9 @@ class H5PDevelopment { // Save/update library. $library['libraryId'] = $this->h5pF->getLibraryId($library['machineName'], $library['majorVersion'], $library['minorVersion']); + if (!isset($library['metadata'])) { + $library['metadata'] = 0; + } $this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE); $library['path'] = 'development/' . $contents[$i]; diff --git a/h5p.classes.php b/h5p.classes.php index e4a5608..a93d8a4 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -210,6 +210,7 @@ interface H5PFrameworkInterface { * - minorVersion: The library's minorVersion * - patchVersion: The library's patchVersion * - runnable: 1 if the library is a content type, 0 otherwise + * - metadata: 1 if the library should support setting metadata (copyright etc) * - fullscreen(optional): 1 if the library supports fullscreen, 0 otherwise * - embedTypes(optional): list of supported embed types * - preloadedJs(optional): list of associative arrays containing: @@ -1440,6 +1441,9 @@ class H5PStorage { $library['saveDependencies'] = TRUE; // Save library meta data + if (!isset($library['metadata'])) { + $library['metadata'] = 0; + } $this->h5pF->saveLibraryData($library, $new); // Save library folder