Fixed bug in validation, which made library-upload on library admin page fail
parent
92d5f71b6f
commit
764ba2761d
|
@ -616,9 +616,10 @@ class H5PValidator {
|
|||
$missingLibraries = $this->getMissingLibraries($libraries);
|
||||
foreach ($missingLibraries as $missing) {
|
||||
if ($this->h5pF->getLibraryId($missing['machineName'], $missing['majorVersion'], $missing['minorVersion'])) {
|
||||
unset($missingLibraries[$missing['machineName']]);
|
||||
unset($missingLibraries[H5PCore::libraryToString($missing)]);
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($missingLibraries)) {
|
||||
foreach ($missingLibraries as $library) {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Missing required library @library', array('@library' => H5PCore::libraryToString($library))));
|
||||
|
|
Loading…
Reference in New Issue