mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-27942' of git://github.com/timhunt/moodle
This commit is contained in:
commit
aed0dbe70a
2 changed files with 6 additions and 1 deletions
|
@ -1213,6 +1213,11 @@ abstract class quiz_nav_panel_base {
|
|||
|
||||
public function user_picture() {
|
||||
global $DB;
|
||||
|
||||
if (!$this->attemptobj->get_quiz()->showuserpicture) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$user = $DB->get_record('user', array('id' => $this->attemptobj->get_userid()));
|
||||
$userpicture = new user_picture($user);
|
||||
$userpicture->courseid = $this->attemptobj->get_courseid();
|
||||
|
|
|
@ -289,7 +289,7 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
|||
}
|
||||
$output .= $panel->render_before_button_bits($this);
|
||||
|
||||
$output = html_writer::start_tag('div', array('class' => 'qn_buttons'));
|
||||
$output .= html_writer::start_tag('div', array('class' => 'qn_buttons'));
|
||||
foreach ($panel->get_question_buttons() as $button) {
|
||||
$output .= $this->render($button);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue