Add local ID from path

HFJ-1610
pull/17/head
Frode Petterson 2016-02-08 10:38:53 +01:00
parent fa90b0a1c3
commit 70baeb55a1
1 changed files with 2 additions and 0 deletions

View File

@ -1721,6 +1721,7 @@ class H5PCore {
} }
$this->detectSiteType(); $this->detectSiteType();
$this->fullPluginPath = preg_replace('/\/[^\/]+[\/]?$/', '' , dirname(__FILE__));
} }
/** /**
@ -2458,6 +2459,7 @@ class H5PCore {
$platformInfo['autoFetchingDisabled'] = $fetchingDisabled; $platformInfo['autoFetchingDisabled'] = $fetchingDisabled;
$platformInfo['uuid'] = $this->h5pF->getOption('site_uuid', ''); $platformInfo['uuid'] = $this->h5pF->getOption('site_uuid', '');
$platformInfo['siteType'] = $this->h5pF->getOption('site_type', 'local'); $platformInfo['siteType'] = $this->h5pF->getOption('site_type', 'local');
$platformInfo['localID'] = hash('crc32', $this->fullPluginPath);
$platformInfo['libraryStats'] = $this->combineArrayValues(array( $platformInfo['libraryStats'] = $this->combineArrayValues(array(
'patch' => $this->getLibrariesInstalled(), 'patch' => $this->getLibrariesInstalled(),
'content' => $this->h5pF->getLibraryContentCount(), 'content' => $this->h5pF->getLibraryContentCount(),