Fixed modified names for some constants [Bug 5695]

This commit is contained in:
bobopinna
2006-06-05 07:21:03 +00:00
parent e369e0c4b4
commit b7679957eb
+4 -4
View File
@@ -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)) {