Browse Source

Show message to user if preventsharederror is hit.

MOODLE_35_STABLE
Dan Marsden 6 years ago
parent
commit
c394dccf87
  1. 6
      classes/output/mobile.php

6
classes/output/mobile.php

@ -139,7 +139,11 @@ class mobile {
continue; continue;
} }
} }
list($canmark, $reason) = attendance_can_student_mark($sess, false); list($canmark, $reason) = attendance_can_student_mark($sess);
if ($reason == 'preventsharederror') {
$data['showmessage'] = true;
$data['messages'][]['string'] = 'preventsharederror'; // Lang string to show as a message.
}
if ($isteacher || $canmark) { if ($isteacher || $canmark) {
$html = array('time' => attendance_construct_session_time($sess->sessdate, $sess->duration)); $html = array('time' => attendance_construct_session_time($sess->sessdate, $sess->duration));

Loading…
Cancel
Save