MDL-71163 mod_data: Remove duplicate info for open and close time

This commit is contained in:
Shamim Rezaie 2021-04-26 12:00:29 +10:00
parent 3ba12dcc5d
commit 2946894701

View file

@ -362,13 +362,9 @@
} }
// If data activity closed dont let students in. // If data activity closed dont let students in.
// No need to display warnings because activity dates are displayed at the top of the page.
list($showactivity, $warnings) = data_get_time_availability_status($data, $canmanageentries); list($showactivity, $warnings) = data_get_time_availability_status($data, $canmanageentries);
if (!$showactivity) {
$reason = current(array_keys($warnings));
echo $OUTPUT->notification(get_string($reason, 'data', $warnings[$reason]));
}
if ($showactivity) { if ($showactivity) {
// Print the tabs // Print the tabs
if ($record or $mode == 'single') { if ($record or $mode == 'single') {