diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 6526131..49e940c 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -995,6 +995,7 @@ $string['moodleversion'] = 'Moodle Version'; $string['more'] = 'more'; $string['moreinformation'] = 'More information about this error'; $string['moreprofileinfoneeded'] = 'Please tell us more about yourself'; +$string['mostrecentlogin'] = 'Most recent login'; $string['mostrecently'] = 'most recently'; $string['move'] = 'Move'; $string['movecategoryto'] = 'Move category to:'; diff --git a/user/filters/lib.php b/user/filters/lib.php index c778ebf..2ea35af 100644 --- a/user/filters/lib.php +++ b/user/filters/lib.php @@ -35,7 +35,7 @@ class user_filtering { if (empty($fieldnames)) { $fieldnames = array('realname'=>0, 'lastname'=>1, 'firstname'=>1, 'email'=>1, 'city'=>1, 'country'=>1, 'confirmed'=>1, 'profile'=>1, 'courserole'=>1, 'systemrole'=>1, - 'firstaccess'=>1, 'lastaccess'=>1, 'lastlogin'=>1, 'timemodified'=>1, 'username'=>1, 'auth'=>1, 'mnethostid'=>1); + 'firstaccess'=>1, 'currentaccess'=>1, 'currentlogin'=>1, 'timemodified'=>1, 'username'=>1, 'auth'=>1, 'mnethostid'=>1); } $this->_fields = array(); @@ -113,7 +113,7 @@ class user_filtering { case 'systemrole': return new user_filter_globalrole('systemrole', get_string('globalrole', 'role'), $advanced); case 'firstaccess': return new user_filter_date('firstaccess', get_string('firstaccess', 'filters'), $advanced, 'firstaccess'); case 'lastaccess': return new user_filter_date('lastaccess', get_string('lastaccess'), $advanced, 'lastaccess'); - case 'lastlogin': return new user_filter_date('lastlogin', get_string('lastlogin'), $advanced, 'lastlogin'); + case 'currentlogin': return new user_filter_date('currentlogin', get_string('mostrecentlogin'), $advanced, 'currentlogin'); case 'timemodified': return new user_filter_date('timemodified', get_string('lastmodified'), $advanced, 'timemodified'); case 'auth': $plugins = get_list_of_plugins('auth');