From ce6d6b175b0147862dfe9ab611d793cb930e26d3 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Thu, 15 Sep 2011 12:11:45 +0700 Subject: [PATCH] MDL-47494 ddimageortext: NOBUG optional_param_array is not available in MOODLE 2.1 but must be used in MOODLE 2.2 on. --- question/type/ddimageortext/edit_ddimageortext_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/ddimageortext/edit_ddimageortext_form.php b/question/type/ddimageortext/edit_ddimageortext_form.php index a044ee40433..616db820909 100644 --- a/question/type/ddimageortext/edit_ddimageortext_form.php +++ b/question/type/ddimageortext/edit_ddimageortext_form.php @@ -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