]> git.mjollnir.org Git - moodle.git/commitdiff
follow correct naming convention when fetching legacy teacher role
authormjollnir_ <mjollnir_>
Sat, 23 Sep 2006 09:47:11 +0000 (09:47 +0000)
committermjollnir_ <mjollnir_>
Sat, 23 Sep 2006 09:47:11 +0000 (09:47 +0000)
lib/statslib.php

index bc66ead9ca2d073b3dbdd1f3c177996e0b0f4508..f32a17295b1ee5b3667d08a4bea68ce6d01304ff 100644 (file)
@@ -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);