Fixed default arg for update content type cache

JI-53
pull/38/head
thomasmars 2017-02-23 12:43:18 +01:00
parent 952a07456c
commit 4a8a791327
1 changed files with 8 additions and 6 deletions

View File

@ -2749,12 +2749,14 @@ class H5PCore {
$token === substr(hash('md5', $action . ($time_factor - 1) . $_SESSION['h5p_token']), -16, 13); // Between 12-24 hours $token === substr(hash('md5', $action . ($time_factor - 1) . $_SESSION['h5p_token']), -16, 13); // Between 12-24 hours
} }
/** /**
* Update content type cache * Update content type cache
* *
* @return bool|object Returns endpoint data if found, otherwise FALSE * @param object $postData Data sent to the hub
*/ *
function updateContentTypeCache($postData) { * @return bool|object Returns endpoint data if found, otherwise FALSE
*/
function updateContentTypeCache($postData = NULL) {
$endpoint = 'http://hubendpoints/contenttypes'; $endpoint = 'http://hubendpoints/contenttypes';
$interface = $this->h5pF; $interface = $this->h5pF;