From d1bbed49fceb0dfb6c24495c0ec49cc8a0bbe78b Mon Sep 17 00:00:00 2001 From: thomasmars Date: Mon, 22 May 2017 12:57:43 +0200 Subject: [PATCH] Don't assume fetchLibrariesMetadata is AJAX HFP-1103 --- h5p.classes.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 2661a43..95f1778 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2456,10 +2456,6 @@ class H5PCore { // Failed retrieving uuid if (!$registration) { $errorMessage = $this->h5pF->t('Site could not be registered with the hub. Please contact your site administrator.'); - H5PCore::ajaxError( - $errorMessage, - 'SITE_REGISTRATION_FAILED' - ); $this->h5pF->setErrorMessage($errorMessage); $this->h5pF->setErrorMessage( $this->h5pF->t('The H5P Hub has been disabled until this problem can be resolved. You may still upload libraries through the "H5P Libraries" page.') @@ -2506,7 +2502,7 @@ class H5PCore { // No data received if (!$result || empty($result)) { - return; + return FALSE; } // Handle libraries metadata