Skip to content

Commit

Permalink
fix:backport h5p log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-simon committed Jul 6, 2023
1 parent 17f5a20 commit f18c361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/php/modules/h5p/mod_h5p.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public function createInstance() {

$messagesArray = array_values($this->H5PFramework->getMessages('error'));
$h5p_error = end($messagesArray);
$Logger -> debug('There was a problem with the H5P-file ('.$this->esObject->getObjectID().'): '.$h5p_error->code);
$Logger -> warn('There was a problem with the H5P-file ('.$this->esObject->getObjectID().'): '.$h5p_error->code);
$Logger -> warn(print_r($h5p_error, true));

@rmdir($this->H5PFramework->get_h5p_path() . DIRECTORY_SEPARATOR . md5($this->esObject->getObjectID()));
return false;
Expand Down

0 comments on commit f18c361

Please sign in to comment.