Skip to content

Commit

Permalink
roles/assign MDL-24299 Fix back link
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
  • Loading branch information
tmuras authored and danpoltawski committed Jan 3, 2011
1 parent c63ebd4 commit 936a0ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/roles/assign.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@
$select = new single_select($PAGE->url, 'roleid', $nameswithcounts, $roleid, null);
$select->label = get_string('assignanotherrole', 'role');
echo $OUTPUT->render($select);
echo '<p><a href="' . $PAGE->url . '">' . get_string('backtoallroles', 'role') . '</a></p>';
$backurl = new moodle_url('/admin/roles/assign.php', array('contextid' => $contextid));
echo '<p><a href="' . $backurl->out() . '">' . get_string('backtoallroles', 'role') . '</a></p>';
echo '</div>';

} else if (empty($assignableroles)) {
Expand Down

0 comments on commit 936a0ae

Please sign in to comment.