Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a modified name for some constants

  • Loading branch information...
commit 0bfac2fe7acf0b5add719596e56a681df417cfdc 1 parent c7d9b99
bobopinna authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/scorm/lib.php
View
8 mod/scorm/lib.php
@@ -203,25 +203,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)) {

0 comments on commit 0bfac2f

Please sign in to comment.
Something went wrong with that request. Please try again.