MDL-53915 tool_cohortroles: Change setting URL to a proper moodle_url

This commit is contained in:
Jun Pataleta 2016-04-22 11:13:02 +08:00
parent 6bd3ab0717
commit 147427ee7b

View File

@ -24,4 +24,5 @@
defined('MOODLE_INTERNAL') || die;
$str = get_string('managecohortroles', 'tool_cohortroles');
$ADMIN->add('roles', new admin_externalpage('toolcohortroles', $str, '/admin/tool/cohortroles/index.php', 'moodle/role:manage'));
$url = new moodle_url('/admin/tool/cohortroles/index.php');
$ADMIN->add('roles', new admin_externalpage('toolcohortroles', $str, $url, 'moodle/role:manage'));