Permalink
Browse files

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

  • Loading branch information...
1 parent c777836 commit 92b226d58d9e76d132771f36c1569d6cae641d1f @Trii Trii committed Sep 27, 2013
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 92b226d

Please sign in to comment.