]> git.mjollnir.org Git - moodle.git/commitdiff
calculated qtype: Remove unnecessary call-time pass by reference.
authortjhunt <tjhunt>
Fri, 24 Jul 2009 09:18:19 +0000 (09:18 +0000)
committertjhunt <tjhunt>
Fri, 24 Jul 2009 09:18:19 +0000 (09:18 +0000)
question/type/calculated/edit_calculated_form.php
question/type/calculatedsimple/edit_calculatedsimple_form.php

index bc9c49d3248a1a68ba2ed660a5b36d3b320944be..13c0e9a67aab45d4d58980fd4b008403a0f03895 100644 (file)
@@ -21,7 +21,7 @@ class question_edit_calculated_form extends question_edit_form {
     var $qtypeobj;
 
     function get_per_answer_fields(&$mform, $label, $gradeoptions, &$repeatedoptions, &$answersoption) {
-        $repeated = parent::get_per_answer_fields(&$mform, $label, $gradeoptions, $repeatedoptions, $answersoption);
+        $repeated = parent::get_per_answer_fields($mform, $label, $gradeoptions, $repeatedoptions, $answersoption);
         $mform->setType('answer', PARAM_NOTAGS);
 
         $addrepeated = array();
index f41f7502160da1032a50a178f28ad9eb688b958b..8906c31d260c87bf68d46c84a4d74a88bb39f3e4 100644 (file)
@@ -252,7 +252,7 @@ class question_edit_calculatedsimple_form extends question_edit_form {
     }
 
     function get_per_answer_fields(&$mform, $label, $gradeoptions, &$repeatedoptions, &$answersoption) {
-        $repeated = parent::get_per_answer_fields(&$mform, $label, $gradeoptions, $repeatedoptions, $answersoption);
+        $repeated = parent::get_per_answer_fields($mform, $label, $gradeoptions, $repeatedoptions, $answersoption);
         $mform->setType('answer', PARAM_NOTAGS);
         $addrepeated = array();
         $addrepeated[] =& $mform->createElement('text', 'tolerance', get_string('tolerance', 'qtype_calculated'));