From 3566ac4141b1dac9deca91328bfce939cf9d5a0c Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 18 Sep 2018 15:02:12 +0200 Subject: [PATCH] HFP-2183 Default library.metadata property shall be 1 --- h5p-development.class.php | 2 +- h5p.classes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/h5p-development.class.php b/h5p-development.class.php index 4188d88..1211517 100644 --- a/h5p-development.class.php +++ b/h5p-development.class.php @@ -87,7 +87,7 @@ class H5PDevelopment { // Save/update library. $library['libraryId'] = $this->h5pF->getLibraryId($library['machineName'], $library['majorVersion'], $library['minorVersion']); if (!isset($library['metadata'])) { - $library['metadata'] = 0; + $library['metadata'] = 1; } $this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE); diff --git a/h5p.classes.php b/h5p.classes.php index 205a070..668d6fa 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1442,7 +1442,7 @@ class H5PStorage { // Save library meta data if (!isset($library['metadata'])) { - $library['metadata'] = 0; + $library['metadata'] = 1; } $this->h5pF->saveLibraryData($library, $new);