mirror of
https://github.com/moodle/moodle.git
synced 2025-03-25 10:00:31 +01:00
MDL-64004 webservice: Do not update accesstime
Do not update the automatically update the course access time when a course is accessed via a webservice or ajax.
This commit is contained in:
parent
33a388eff7
commit
fd25c7d5f8
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user