From ICC, allow extra params
parent
7d989c648d
commit
1549075a57
|
@ -116,8 +116,6 @@ interface H5PFrameworkInterface {
|
|||
*
|
||||
* @param object $libraryData
|
||||
* Object holding the information that is to be stored
|
||||
*
|
||||
* @todo Describe object structure and members so new implementors know what to look for
|
||||
*/
|
||||
public function saveLibraryData(&$libraryData, $new = TRUE);
|
||||
|
||||
|
@ -1526,7 +1524,11 @@ class H5PContentValidator {
|
|||
$this->semanticsCache[$value->library] = $librarySemantics;
|
||||
}
|
||||
$this->validateBySemantics($value->params, $librarySemantics);
|
||||
$this->filterParams($value, array('library', 'params'));
|
||||
$validkeys = array('library', 'params');
|
||||
if (isset($semantics->extraAttributes)) {
|
||||
$validkeys = array_merge($validkeys, $semantics->extraAttributes);
|
||||
}
|
||||
$this->filterParams($value, $validkeys);
|
||||
}
|
||||
else {
|
||||
$this->h5pF->setErrorMessage($this->h5pF->t('Library used in content is not a valid library according to semantics'));
|
||||
|
|
Loading…
Reference in New Issue