From aa9e82825c4e4d375838137f8a60acb3bd5ac89a Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 11 Feb 2006 16:42:49 +0000 Subject: [PATCH] removed two method definitions that are used for the editing form removed an extraneous addslashes --- mod/quiz/questiontypes/random/questiontype.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/mod/quiz/questiontypes/random/questiontype.php b/mod/quiz/questiontypes/random/questiontype.php index 154d1f33220..2aedd6156d3 100644 --- a/mod/quiz/questiontypes/random/questiontype.php +++ b/mod/quiz/questiontypes/random/questiontype.php @@ -162,7 +162,7 @@ class quiz_random_qtype extends quiz_default_questiontype { if(false === $response) { return false; } - $response = addslashes($response); + // Prefix the answer field... $response = "random$realqid-$response"; @@ -228,20 +228,6 @@ class quiz_random_qtype extends quiz_default_questiontype { ->compare_responses($wrappedquestion, $state, $teststate); } - function print_replacement_options($question, $course, $quizid='0') { - global $QUIZ_QTYPES; - $wrappedquestion = &$state->options->question; - return $QUIZ_QTYPES[$wrappedquestion->qtype] - ->print_replacement_options($wrappedquestion, $state, $quizid); - } - - function print_question_form_end($question, $submitscript='') { - global $QUIZ_QTYPES; - $wrappedquestion = &$state->options->question; - return $QUIZ_QTYPES[$wrappedquestion->qtype] - ->print_question_form_end($wrappedquestion, $state, $quizid); - } - } //// END OF CLASS ////