Don't assume fetchLibrariesMetadata is AJAX

HFP-1103
pull/10/merge moodle-1.3
thomasmars 2017-05-22 12:57:43 +02:00
parent 677adb0d8a
commit d1bbed49fc
1 changed files with 1 additions and 5 deletions

View File

@ -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