From e4814bbcdcf68cea7aac9f1466b5635a7ec0a570 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 20 Oct 2006 05:18:24 +0000 Subject: [PATCH] Merged sitecontext fix from stable --- admin/settings/users.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/settings/users.php b/admin/settings/users.php index 18167f0f2d..d5effe4b3f 100644 --- a/admin/settings/users.php +++ b/admin/settings/users.php @@ -16,7 +16,8 @@ $ADMIN->add('accounts', new admin_externalpage('uploadusers', get_string('upload // stuff under the "roles" subcategory $ADMIN->add('users', new admin_category('roles', get_string('permissions', 'role'))); $ADMIN->add('roles', new admin_externalpage('defineroles', get_string('defineroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/manage.php")); -$ADMIN->add('roles', new admin_externalpage('assignroles', get_string('assignroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=" . SITEID)); +$sitecontext = get_context_instance(CONTEXT_SYSTEM); +$ADMIN->add('roles', new admin_externalpage('assignroles', get_string('assignroles', 'role'), "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=" . $sitecontext->id)); // "userpolicies" settingpage -- 2.39.5