JI-1062 Remove unused code

pull/58/head
Frode Petterson 2019-03-15 13:04:34 +01:00
parent 366d8f2a0b
commit 60fb6c96ca
1 changed files with 0 additions and 20 deletions

View File

@ -965,26 +965,6 @@ class H5PValidator {
}
}
// Validate the data from h5p.json
if ($skipContent === FALSE) {
$frameworkValidation = $this->h5pF->validateLibrary($mainH5pData);
if (!$frameworkValidation->valid) {
$message = $this->h5pF->t('Validation of the main library failed.');
$code = null;
if (isset($frameworkValidation->message)) {
$message = $frameworkValidation->message;
}
if (isset($frameworkValidation->code)) {
$code = $frameworkValidation->code;
}
$this->h5pF->setErrorMessage($message, $code);
$valid = FALSE;
}
}
if ($valid) {
if ($upgradeOnly) {
// When upgrading, we only add the already installed libraries, and