diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 19c4f8a..6914cae 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -64,6 +64,7 @@ class mobile { $data['cmid'] = $cmid; $data['courseid'] = $courseid; $data['attendance'] = $attendance; + $data['timestamp'] = time(); // Used to prevent attendance session marking page to be cached. $data['attendancefunction'] = 'mobile_user_form'; $isteacher = false; diff --git a/templates/mobile_view_page.mustache b/templates/mobile_view_page.mustache index 1e4a0dd..217d12b 100644 --- a/templates/mobile_view_page.mustache +++ b/templates/mobile_view_page.mustache @@ -43,7 +43,8 @@ "pointssessionscompleted": "2", "percentagesessionscompleted": "2" }, - "cmid": "25" + "cmid": "25", + "timestamp": "1234" } }} {{=<% %>=}} @@ -61,7 +62,7 @@

<% time %>

<% currentstatus %>

<%#sessid%> - <%/sessid%> diff --git a/version.php b/version.php index 0c93536..fff9fbd 100644 --- a/version.php +++ b/version.php @@ -23,7 +23,7 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2018091300; +$plugin->version = 2018092700; $plugin->requires = 2018050800; // Requires 3.5. $plugin->release = '3.6.1'; $plugin->maturity = MATURITY_ALPHA;