MDL-71163 mod_scorm: Remove duplicate info for open and close time
This commit is contained in:
+1
-5
@@ -170,12 +170,8 @@ if (empty($launch) && ($scorm->displayattemptstatus == SCORM_DISPLAY_ATTEMPTSTAT
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user