From 13a29884145ef2e5b8af2822af5faa2d9835d949 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 10 Mar 2016 14:14:00 +0100 Subject: [PATCH] Revert "HFJ-1610 - Track libraries installed." This reverts commit 5287d455b2f3ad6f4965759b6a9c9fde581dacf0. --- h5p.classes.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 9627610..b79909e 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2405,28 +2405,6 @@ class H5PCore { } } - /** - * Get a list of installed libraries, different minor versions will - * return separate entries. - * - * @return array - * A distinct array of installed libraries - */ - public function getLibrariesInstalled() { - $librariesInstalled = []; - - $libs = $this->h5pF->loadLibraries(); - - foreach($libs as $library) { - foreach($library as $libVersion) { - - $librariesInstalled[] = $libVersion->name.' '.$libVersion->major_version.'.'.$libVersion->minor_version.'.'.$libVersion->patch_version; - } - } - - return $librariesInstalled; - } - /** * Fetch a list of libraries' metadata from h5p.org. * Save URL tutorial to database. Each platform implementation @@ -2438,7 +2416,6 @@ class H5PCore { $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);