mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-52471 quiz: remove broken code question_print_comment_fields()
This commit is contained in:
parent
9708ff95fd
commit
8440c780bd
@ -1975,23 +1975,6 @@ class quiz_attempt {
|
||||
$event->trigger();
|
||||
}
|
||||
|
||||
/**
|
||||
* Print the fields of the comment form for questions in this attempt.
|
||||
* @param $slot which question to output the fields for.
|
||||
* @param $prefix Prefix to add to all field names.
|
||||
*/
|
||||
public function question_print_comment_fields($slot, $prefix) {
|
||||
// Work out a nice title.
|
||||
$student = get_record('user', 'id', $this->get_userid());
|
||||
$a = new object();
|
||||
$a->fullname = fullname($student, true);
|
||||
$a->attempt = $this->get_attempt_number();
|
||||
|
||||
question_print_comment_fields($this->quba->get_question_attempt($slot),
|
||||
$prefix, $this->get_display_options(true)->markdp,
|
||||
get_string('gradingattempt', 'quiz_grading', $a));
|
||||
}
|
||||
|
||||
// Private methods =========================================================
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,9 @@
|
||||
This files describes API changes in the quiz code.
|
||||
|
||||
=== 3.1 ===
|
||||
* quiz_attempt::question_print_comment_fields() has been removed. It was broken
|
||||
since at least Moodle 2.0.
|
||||
|
||||
=== 2.9 ===
|
||||
|
||||
* There have been changes in classes/output/edit_renderer.php for MDL-40990.
|
||||
|
Loading…
x
Reference in New Issue
Block a user