mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-17754 next round of session related refactoring
This commit is contained in:
parent
6c928b4cfe
commit
b7b64ff2e0
13 changed files with 105 additions and 80 deletions
|
@ -1897,7 +1897,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
|
|||
if ($user) {
|
||||
$userid = $user;
|
||||
} else {
|
||||
if (is_loggedinas()) { // Don't log
|
||||
if (session_is_loggedinas()) { // Don't log
|
||||
return;
|
||||
}
|
||||
$userid = empty($USER->id) ? '0' : $USER->id;
|
||||
|
@ -1972,7 +1972,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
|
|||
function user_accesstime_log($courseid=0) {
|
||||
global $USER, $CFG, $DB;
|
||||
|
||||
if (!isloggedin() or is_loggedinas()) {
|
||||
if (!isloggedin() or session_is_loggedinas()) {
|
||||
// no access tracking
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue