diff --git a/h5p.classes.php b/h5p.classes.php index 00f5700..399be14 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -334,16 +334,6 @@ interface H5PFrameworkInterface { */ public function getLibraryUsage($libraryId); - /** - * Get a key value list of library version and count of content created - * using that library. - * - * @return array - * Array containing library, major and minor version - content count - * e.g. "H5P.CoursePresentation 1.6" => "14" - */ - public function getLibraryContentCount(); - /** * Loads a library * @@ -1723,8 +1713,6 @@ class H5PCore { if ($development_mode & H5PDevelopment::MODE_LIBRARY) { $this->h5pD = new H5PDevelopment($this->h5pF, $path . '/', $language); } - - $this->detectSiteType(); } /** @@ -2455,10 +2443,6 @@ class H5PCore { $platformInfo = $this->h5pF->getPlatformInfo(); $platformInfo['autoFetchingDisabled'] = $fetchingDisabled; $platformInfo['uuid'] = $this->h5pF->getOption('site_uuid', ''); - $platformInfo['siteType'] = $this->h5pF->getOption('site_type', 'local'); - $platformInfo['libraryContentCount'] = $this->h5pF->getLibraryContentCount(); - $platformInfo['librariesInstalled'] = $this->getLibrariesInstalled(); - // Adding random string to GET to be sure nothing is cached $random = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5); $json = $this->h5pF->fetchExternalData('http://h5p.org/libraries-metadata.json?api=1&platform=' . urlencode(json_encode($platformInfo)) . '&x=' . urlencode($random)); @@ -2596,7 +2580,7 @@ class H5PCore { $response = array( 'success' => TRUE ); - if ($message !== NULL) { + if ($data !== NULL) { $response['data'] = $data; } self::printJson($response);