From 95901159d0e6e4649a6c6696f0a8e5d1c71035d4 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Thu, 23 Nov 2017 15:15:03 +0100 Subject: [PATCH] HFP-1768 Send core api version as a single element --- h5p.classes.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index a65fc0d..d8ed62e 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2510,10 +2510,8 @@ class H5PCore { 'disabled' => $fetchingDisabled ? 1 : 0, 'local_id' => hash('crc32', $this->fullPluginPath), 'type' => $this->h5pF->getOption('site_type', 'local'), - 'core_api_version' => json_encode(array( - 'major' => H5PCore::$coreApi['majorVersion'], - 'minor' => H5PCore::$coreApi['minorVersion'] - )) + 'core_api_version' => H5PCore::$coreApi['majorVersion'] . '.' . + H5PCore::$coreApi['minorVersion'] ); // Register site if it is not registered