]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed modified names for some constants [Bug 5695]
authorbobopinna <bobopinna>
Mon, 5 Jun 2006 07:21:03 +0000 (07:21 +0000)
committerbobopinna <bobopinna>
Mon, 5 Jun 2006 07:21:03 +0000 (07:21 +0000)
mod/scorm/lib.php

index 75437ec5ac82a331edebb10fb8e757ea78033c14..b8c8f28f63ce9fa0a7866bd68dfe04489905deea 100755 (executable)
@@ -236,25 +236,25 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
             }\r
         }\r
         switch ($scorm->grademethod) {\r
-            case VALUEHIGHEST:\r
+            case GRADEHIGHEST:\r
                if ($scores->values > 0) {\r
                     $return->info = get_string('score','scorm').':&nbsp;'.$scores->max;\r
                     $return->time = $scores->lastmodify;\r
                 }\r
             break;\r
-            case VALUEAVERAGE:\r
+            case GRADEAVERAGE:\r
                 if ($scores->values > 0) {\r
                     $return->info = get_string('score','scorm').':&nbsp;'.$scores->sum/$scores->values;\r
                     $return->time = $scores->lastmodify;\r
                 }\r
             break;\r
-            case VALUESUM:\r
+            case GRADESUM:\r
                 if ($scores->values > 0) {\r
                     $return->info = get_string('score','scorm').':&nbsp;'.$scores->sum;\r
                     $return->time = $scores->lastmodify;\r
                 }\r
             break;\r
-            case VALUESCOES:\r
+            case GRADESCOES:\r
                 $return->info = '';\r
                 $scores->notattempted = $scores->count;\r
                 if (isset($scores->completed)) {\r