HFP-1768 Send core api version as a single element

pull/44/head 1.17.0
Paal Joergensen 2017-11-23 15:15:03 +01:00
parent 90d1e7579d
commit 95901159d0
1 changed files with 2 additions and 4 deletions

View File

@ -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