Permalink
Browse files

Merge branch 'w34_MDL-34864_m23_enrolcat' of git://github.com/skodak/…

…moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents e03a03a + f813d99 commit 363b35f22136888e5797d2d4f9891120c9af0a9e @danpoltawski danpoltawski committed Aug 22, 2012
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 363b35f

Please sign in to comment.