diff --git a/question/type/calculatedmulti/questiontype.php b/question/type/calculatedmulti/questiontype.php index f3dc21c7514..74fac7f066a 100644 --- a/question/type/calculatedmulti/questiontype.php +++ b/question/type/calculatedmulti/questiontype.php @@ -260,7 +260,7 @@ class question_calculatedmulti_qtype extends question_calculated_qtype { $str = $texteval->answer; } } - $qtext = $qtext.$regs1[0].$str ; + $qtext = $qtext.$str ; } $answer->answer = $qtext.$qtextremaining ; ; } @@ -514,3 +514,7 @@ class question_calculatedmulti_qtype extends question_calculated_qtype { //// INITIATION - Without this line the question type is not in use... /// ////////////////////////////////////////////////////////////////////////// question_register_questiontype(new question_calculatedmulti_qtype()); + +if ( ! defined ("CALCULATEDMULTI")) { + define("CALCULATEDMULTI", "calculatedmulti"); +}