Merge branch 'MDL-64004-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE

This commit is contained in:
Jake Dallimore
2019-01-10 11:00:25 +08:00
+4 -1
View File
@@ -3108,7 +3108,10 @@ function require_course_login($courseorid, $autologinguest = true, $cm = null, $
// If $PAGE->course, and hence $PAGE->context, have not already been set up properly, set them up now.
$PAGE->set_course($PAGE->course);
}
user_accesstime_log(SITEID);
// Do not update access time for webservice or ajax requests.
if (!WS_SERVER && !AJAX_SCRIPT) {
user_accesstime_log(SITEID);
}
return;
} else {