roles/assign MDL-24299 Fix back link

Signed-off-by: Dan Poltawski <[email protected]>
This commit is contained in:
Tomasz Muras
2011-01-03 21:09:32 +00:00
committed by Dan Poltawski
parent c63ebd4311
commit 936a0ae07e
+2 -1
View File
@@ -232,7 +232,8 @@ $assignurl = new moodle_url($PAGE->url, array('roleid'=>$roleid));
$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)) {