coverted /admin/ to proper /$CFG->admin/ in paths
This commit is contained in:
@@ -58,7 +58,7 @@ class block_admin extends block_list {
|
||||
/// Assign roles to the course
|
||||
|
||||
if (has_capability('moodle/role:assign', $context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/admin/roles/assign.php?contextid='.$context->id.'">'.get_string('assignroles', 'role').'</a>';
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id.'">'.get_string('assignroles', 'role').'</a>';
|
||||
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/roles.gif" alt="" />';
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user