From: tjhunt Date: Fri, 24 Jul 2009 09:18:19 +0000 (+0000) Subject: calculated qtype: Remove unnecessary call-time pass by reference. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aeab3f8d3705d43e7b75d6c99063b181a61258f7;p=moodle.git calculated qtype: Remove unnecessary call-time pass by reference. --- diff --git a/question/type/calculated/edit_calculated_form.php b/question/type/calculated/edit_calculated_form.php index bc9c49d324..13c0e9a67a 100644 --- a/question/type/calculated/edit_calculated_form.php +++ b/question/type/calculated/edit_calculated_form.php @@ -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(); diff --git a/question/type/calculatedsimple/edit_calculatedsimple_form.php b/question/type/calculatedsimple/edit_calculatedsimple_form.php index f41f750216..8906c31d26 100644 --- a/question/type/calculatedsimple/edit_calculatedsimple_form.php +++ b/question/type/calculatedsimple/edit_calculatedsimple_form.php @@ -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'));