Skip to content

Commit

Permalink
MDL-66407 core_h5p: fix error in the insertContent method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Brands authored and sarjona committed Sep 15, 2019
1 parent bf532f8 commit efb797c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion h5p/classes/framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ public function updateContent($content, $contentmainid = null) {
'embedtype' => 'div',
'mainlibraryid' => $content['library']['libraryId'],
'timemodified' => time(),
'pathnamehash' => $contentmainid
);

if (!isset($content['id'])) {
Expand All @@ -735,7 +736,7 @@ public function updateContent($content, $contentmainid = null) {
* @return int
*/
public function insertContent($content, $contentmainid = null) {
return $this->updateContent($content);
return $this->updateContent($content, $contentmainid);
}

/**
Expand Down

0 comments on commit efb797c

Please sign in to comment.