Permalink
Browse files

MDL-41520 LTI: Does not track page views for completion

Add the missing code for completion_info::set_module_viewed() since LTI
says that it offers completion tracking on view
  • Loading branch information...
Trii committed Sep 27, 2013
1 parent d45e65c commit 4938777ed319ec16823e6cdd341fec9b69fad5ef
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/lti/view.php
View
@@ -92,6 +92,10 @@
require_login($course);
+// Mark viewed by user (if required).
+$completion = new completion_info($course);
+$completion->set_module_viewed($cm);
+
add_to_log($course->id, "lti", "view", "view.php?id=$cm->id", "$lti->id");
$pagetitle = strip_tags($course->shortname.': '.format_string($lti->name));

0 comments on commit 4938777

Please sign in to comment.