From 0570e81ecbd790de20eeac166961dcd437aef89e Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 23 Aug 2011 08:53:32 +0100 Subject: [PATCH] MDL-29062 qtype multianswer refers to old name for the question_delete_questions function. --- question/type/multianswer/questiontype.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 29d5214c83c..9d124c6e826 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -141,14 +141,14 @@ class qtype_multianswer extends question_type { if ($previousid != 0 && $previousid != $wrapped->id) { // for some reasons a new question has been created // so delete the old one - delete_question($previousid); + question_delete_question($previousid); } } // Delete redundant wrapped questions if (is_array($oldwrappedquestions) && count($oldwrappedquestions)) { foreach ($oldwrappedquestions as $oldwrappedquestion) { - delete_question($oldwrappedquestion->id); + question_delete_question($oldwrappedquestion->id); } }