mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-70223 h5p: fix invalid id when adding h5p activity
This commit is contained in:
parent
5500d143f4
commit
ec1e17a73b
@ -29,6 +29,8 @@ require_login();
|
||||
$contextid = required_param('contextid', PARAM_INT);
|
||||
$pluginname = required_param('plugin', PARAM_PLUGIN);
|
||||
$id = optional_param('id', null, PARAM_INT);
|
||||
$library = optional_param('library', null, PARAM_RAW);
|
||||
|
||||
$context = context::instance_by_id($contextid, MUST_EXIST);
|
||||
|
||||
$cb = new \core_contentbank\contentbank();
|
||||
@ -79,7 +81,8 @@ $values = [
|
||||
'contextid' => $contextid,
|
||||
'plugin' => $pluginname,
|
||||
'id' => $id,
|
||||
'heading' => $heading
|
||||
'heading' => $heading,
|
||||
'library' => $library
|
||||
];
|
||||
|
||||
$title = get_string('contentbank');
|
||||
|
Loading…
x
Reference in New Issue
Block a user