From: bobopinna Date: Mon, 5 Jun 2006 07:21:03 +0000 (+0000) Subject: Fixed modified names for some constants [Bug 5695] X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b7679957eb47d80c7e075e160b4609ab15ec8a96;p=moodle.git Fixed modified names for some constants [Bug 5695] --- diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 75437ec5ac..b8c8f28f63 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -236,25 +236,25 @@ function scorm_user_outline($course, $user, $mod, $scorm) { } } switch ($scorm->grademethod) { - case VALUEHIGHEST: + case GRADEHIGHEST: if ($scores->values > 0) { $return->info = get_string('score','scorm').': '.$scores->max; $return->time = $scores->lastmodify; } break; - case VALUEAVERAGE: + case GRADEAVERAGE: if ($scores->values > 0) { $return->info = get_string('score','scorm').': '.$scores->sum/$scores->values; $return->time = $scores->lastmodify; } break; - case VALUESUM: + case GRADESUM: if ($scores->values > 0) { $return->info = get_string('score','scorm').': '.$scores->sum; $return->time = $scores->lastmodify; } break; - case VALUESCOES: + case GRADESCOES: $return->info = ''; $scores->notattempted = $scores->count; if (isset($scores->completed)) {