calculated qtype: Remove unnecessary call-time pass by reference.

This commit is contained in:
tjhunt
2009-07-24 09:18:19 +00:00
parent d1dd5d030f
commit aeab3f8d37
2 changed files with 2 additions and 2 deletions
@@ -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();
@@ -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'));