Browse Source

Fix #344 show full session date in mobile app.

MOODLE_36_STABLE
Dan Marsden 6 years ago
parent
commit
fefc925f0c
  1. 2
      classes/output/mobile.php

2
classes/output/mobile.php

@ -157,7 +157,7 @@ class mobile {
} }
if ($isteacher || $canmark) { if ($isteacher || $canmark) {
$html = array('time' => attendance_construct_session_time($sess->sessdate, $sess->duration)); $html = array('time' => strip_tags(construct_session_full_date_time($sess->sessdate, $sess->duration)));
if (!empty($sess->groupid)) { if (!empty($sess->groupid)) {
// TODO In-efficient way to get group name - we should get all groups in one query. // TODO In-efficient way to get group name - we should get all groups in one query.
$groupname = $DB->get_field('groups', 'name', array('id' => $sess->groupid)); $groupname = $DB->get_field('groups', 'name', array('id' => $sess->groupid));

Loading…
Cancel
Save