Remove scary error messages

d6 wp-1.3.0
Svein-Tore Griff With 2015-02-18 19:58:03 +01:00
parent 3d4d72c5a7
commit 95a0b000db
1 changed files with 2 additions and 2 deletions

View File

@ -2670,7 +2670,7 @@ class H5PContentValidator {
else {
// If validator is not found, something exists in content that does
// not have a corresponding semantics field. Remove it.
$this->h5pF->setErrorMessage($this->h5pF->t('H5P internal error: no validator exists for @key', array('@key' => $key)));
// $this->h5pF->setErrorMessage($this->h5pF->t('H5P internal error: no validator exists for @key', array('@key' => $key)));
unset($group->$key);
}
}
@ -2680,7 +2680,7 @@ class H5PContentValidator {
if (!(isset($field->optional) && $field->optional)) {
// Check if field is in group.
if (! property_exists($group, $field->name)) {
$this->h5pF->setErrorMessage($this->h5pF->t('No value given for mandatory field ' . $field->name));
//$this->h5pF->setErrorMessage($this->h5pF->t('No value given for mandatory field ' . $field->name));
}
}
}