Skip to content

Commit

Permalink
Merge branch 'MDL-61040-master' of git://github.com/junpataleta/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Dec 18, 2017
2 parents 6663f61 + 07a4648 commit 7bce505
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/choice/renderer.php
Expand Up @@ -93,7 +93,7 @@ public function display_options($options, $coursemoduleid, $vertical = false, $m
if (!empty($options['allowupdate']) && ($options['allowupdate'])) { if (!empty($options['allowupdate']) && ($options['allowupdate'])) {
$url = new moodle_url('view.php', $url = new moodle_url('view.php',
array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey())); array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey()));
$html .= html_writer::link($url, get_string('removemychoice', 'choice')); $html .= html_writer::link($url, get_string('removemychoice', 'choice'), array('class' => 'm-l-1'));
} }
} else { } else {
$html .= html_writer::tag('label', get_string('havetologin', 'choice')); $html .= html_writer::tag('label', get_string('havetologin', 'choice'));
Expand Down
3 changes: 2 additions & 1 deletion mod/choice/view.php
Expand Up @@ -203,7 +203,8 @@
if (choice_can_view_results($choice, $current, $choiceopen)) { if (choice_can_view_results($choice, $current, $choiceopen)) {
$results = prepare_choice_show_results($choice, $course, $cm, $allresponses); $results = prepare_choice_show_results($choice, $course, $cm, $allresponses);
$renderer = $PAGE->get_renderer('mod_choice'); $renderer = $PAGE->get_renderer('mod_choice');
echo $renderer->display_result($results); $resultstable = $renderer->display_result($results);
echo $OUTPUT->box($resultstable);


} else if (!$choiceformshown) { } else if (!$choiceformshown) {
echo $OUTPUT->box(get_string('noresultsviewable', 'choice')); echo $OUTPUT->box(get_string('noresultsviewable', 'choice'));
Expand Down

0 comments on commit 7bce505

Please sign in to comment.