Merge branch 'MDL-27942' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-06-20 17:05:54 +02:00
commit aed0dbe70a
2 changed files with 6 additions and 1 deletions

View file

@ -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();

View file

@ -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);
}