Permalink
Browse files

MDL-34864 fix role names regression

  • Loading branch information...
skodak committed Aug 22, 2012
1 parent 245197e commit f813d9929686a2c3d1adec80fb23d74dd62e925d
Showing with 4 additions and 1 deletion.
  1. +4 −1 enrol/category/locallib.php
@@ -286,7 +286,10 @@ function enrol_category_sync_full($verbose = false) {
}
return 0;
}
- $rolenames = role_fix_names($roles, null, ROLENAME_SHORT, true);
+ $rolenames = array();
+ foreach($roles as $role) {
+ $rolenames[$role->id] = $role->shortname;
+ }
if ($verbose) {
mtrace('Synchronising category enrolments for roles: '.implode(', ', $rolenames).'...');
}

0 comments on commit f813d99

Please sign in to comment.