Skip to content

Commit 23d7a70

Browse files
author
David Monllao
committed
Merge branch 'MDL-61040-33' of git://github.com/junpataleta/moodle into MOODLE_33_STABLE
2 parents 652948b + 2d9efe5 commit 23d7a70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mod/choice/renderer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function display_options($options, $coursemoduleid, $vertical = false, $m
9393
if (!empty($options['allowupdate']) && ($options['allowupdate'])) {
9494
$url = new moodle_url('view.php',
9595
array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey()));
96-
$html .= html_writer::link($url, get_string('removemychoice', 'choice'));
96+
$html .= html_writer::link($url, get_string('removemychoice', 'choice'), array('class' => 'm-l-1'));
9797
}
9898
} else {
9999
$html .= html_writer::tag('label', get_string('havetologin', 'choice'));

mod/choice/view.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@
203203
if (choice_can_view_results($choice, $current, $choiceopen)) {
204204
$results = prepare_choice_show_results($choice, $course, $cm, $allresponses);
205205
$renderer = $PAGE->get_renderer('mod_choice');
206-
echo $renderer->display_result($results);
206+
$resultstable = $renderer->display_result($results);
207+
echo $OUTPUT->box($resultstable);
207208

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

0 commit comments

Comments
 (0)