MDL-47494 ddimageortext: NOBUG optional_param_array is not available in MOODLE 2.1 but must be used in
MOODLE 2.2 on.
This commit is contained in:
@@ -259,7 +259,7 @@ class qtype_ddimageortext_edit_form extends question_edit_form {
|
||||
|
||||
//initialise file picker for dragimages
|
||||
list(, $imagerepeats) = $this->get_drag_image_repeats();
|
||||
$draftitemids = optional_param_array('dragitem', array(), PARAM_INT);
|
||||
$draftitemids = optional_param('dragitem', array(), PARAM_INT);
|
||||
for ($imageindex = 0; $imageindex < $imagerepeats; $imageindex++) {
|
||||
$draftitemid = isset($draftitemids[$imageindex]) ? $draftitemids[$imageindex] :0;
|
||||
//numbers not allowed in filearea name
|
||||
|
||||
Reference in New Issue
Block a user