From 362464ad568dec0c266bcb5b76a83486646c9363 Mon Sep 17 00:00:00 2001 From: thomasmars Date: Mon, 27 Feb 2017 16:01:08 +0100 Subject: [PATCH] Updated endpoint JI-90 --- h5p.classes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 93c9597..7d7327f 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2765,7 +2765,7 @@ class H5PCore { * @return bool|object Returns endpoint data if found, otherwise FALSE */ public function updateContentTypeCache($postData = NULL) { - $endpoint = 'http://hubendpoints/contenttypes'; + $endpoint = 'http://api.h5p.org/v1/content-types'; $interface = $this->h5pF; @@ -2791,7 +2791,7 @@ class H5PCore { $json = json_decode($data); // No libraries received - if (!isset($json->libraries) || empty($json->libraries)) { + if (!isset($json->contentTypes) || empty($json->contentTypes)) { $interface->setErrorMessage( $interface->t('No libraries was received from the Content Type Hub. Please try again later.') );