Skip to content

Commit

Permalink
Merge branch 'w34_MDL-34864_m23_enrolcat' of git://github.com/skodak/…
Browse files Browse the repository at this point in the history
…moodle into MOODLE_23_STABLE
  • Loading branch information
danpoltawski committed Aug 22, 2012
2 parents e03a03a + f813d99 commit 363b35f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion enrol/category/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).'...');
}
Expand Down

0 comments on commit 363b35f

Please sign in to comment.