Skip to content

Commit

Permalink
MDL-71163 mod_scorm: Remove duplicate info for open and close time
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Apr 30, 2021
1 parent e25be6b commit 3ba12dc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mod/scorm/view.php
Expand Up @@ -170,12 +170,8 @@
}
echo $OUTPUT->box(format_module_intro('scorm', $scorm, $cm->id).$attemptstatus, 'container', 'intro');

// Check if SCORM available.
// Check if SCORM available. No need to display warnings because activity dates are displayed at the top of the page.
list($available, $warnings) = scorm_get_availability_status($scorm);
if (!$available) {
$reason = current(array_keys($warnings));
echo $OUTPUT->box(get_string($reason, "scorm", $warnings[$reason]), "container");
}

if ($available && empty($launch)) {
scorm_print_launch($USER, $scorm, 'view.php?id='.$cm->id, $cm);
Expand Down

0 comments on commit 3ba12dc

Please sign in to comment.