From: mjollnir_ Date: Sat, 23 Sep 2006 09:47:11 +0000 (+0000) Subject: follow correct naming convention when fetching legacy teacher role X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=09cf1c9b55696619e324fc228529c5a5e61da8cc;p=moodle.git follow correct naming convention when fetching legacy teacher role --- diff --git a/lib/statslib.php b/lib/statslib.php index bc66ead9ca..f32a17295b 100644 --- a/lib/statslib.php +++ b/lib/statslib.php @@ -1136,7 +1136,7 @@ function stats_upgrade_user_table_for_roles ($period) { } if (!$teacher_role_id) { - $role = get_roles_with_capability('moodle/legacy:teacher', CAP_ALLOW); + $role = get_roles_with_capability('moodle/legacy:editingteacher', CAP_ALLOW); $role = array_keys($role); $teacher_role_id = $role[0]; $role = get_roles_with_capability('moodle/legacy:student', CAP_ALLOW);