mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-71163 mod_data: Remove duplicate info for open and close time
This commit is contained in:
parent
3ba12dcc5d
commit
2946894701
1 changed files with 1 additions and 5 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue