fix for MDL-8981, roles assigned at site level may result n a lot of default subscriptions

This commit is contained in:
toyomoyo
2007-03-21 06:01:33 +00:00
parent d60572c8dd
commit af007d91ee
4 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -2166,7 +2166,7 @@ function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $time
include_once($CFG->dirroot.'/mod/'.$mod.'/lib.php');
$functionname = $mod.'_role_assign';
if (function_exists($functionname)) {
$functionname($userid, $context);
$functionname($userid, $context, $roleid);
}
}
}