Updated endpoint

JI-90
pull/38/head
thomasmars 2017-02-27 16:01:08 +01:00
parent a83ea9999d
commit 362464ad56
1 changed files with 2 additions and 2 deletions

View File

@ -2765,7 +2765,7 @@ class H5PCore {
* @return bool|object Returns endpoint data if found, otherwise FALSE * @return bool|object Returns endpoint data if found, otherwise FALSE
*/ */
public function updateContentTypeCache($postData = NULL) { public function updateContentTypeCache($postData = NULL) {
$endpoint = 'http://hubendpoints/contenttypes'; $endpoint = 'http://api.h5p.org/v1/content-types';
$interface = $this->h5pF; $interface = $this->h5pF;
@ -2791,7 +2791,7 @@ class H5PCore {
$json = json_decode($data); $json = json_decode($data);
// No libraries received // No libraries received
if (!isset($json->libraries) || empty($json->libraries)) { if (!isset($json->contentTypes) || empty($json->contentTypes)) {
$interface->setErrorMessage( $interface->setErrorMessage(
$interface->t('No libraries was received from the Content Type Hub. Please try again later.') $interface->t('No libraries was received from the Content Type Hub. Please try again later.')
); );