From 90d1e7579d126c091a552766103a94da30d984a7 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Thu, 23 Nov 2017 11:39:03 +0100 Subject: [PATCH] HFP-1768 Add api core version to requests to api.h5p.org --- h5p.classes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 629acd6..a65fc0d 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2509,7 +2509,11 @@ class H5PCore { 'h5p_version' => $platform['h5pVersion'], 'disabled' => $fetchingDisabled ? 1 : 0, 'local_id' => hash('crc32', $this->fullPluginPath), - 'type' => $this->h5pF->getOption('site_type', 'local') + 'type' => $this->h5pF->getOption('site_type', 'local'), + 'core_api_version' => json_encode(array( + 'major' => H5PCore::$coreApi['majorVersion'], + 'minor' => H5PCore::$coreApi['minorVersion'] + )) ); // Register site if it is not registered