Skip to content
Snippets Groups Projects
Unverified Commit d5ec7b55 authored by Ryan Smith's avatar Ryan Smith Committed by GitHub
Browse files

fix: Fixes the duplicate username setting from #181 to close #188. (#189)

parent b4e7ee4e
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ class store extends php_obj implements log_writer {
'source_lang' => 'en',
'send_mbox' => $this->get_config('mbox', false),
'send_short_course_id' => $this->get_config('shortcourseid', false),
'send_username' => $this->get_config('username', false),
'send_username' => $this->get_config('send_username', false),
'plugin_url' => 'https://github.com/xAPI-vle/moodle-logstore_xapi',
'plugin_version' => $plugin->release,
'repo' => new \src\transformer\repos\MoodleRepository($DB),
......
......@@ -41,7 +41,7 @@ $string['logguests'] = 'Log guest actions';
$string['filters_help'] = 'Enable filters that INCLUDE some actions to be logged.';
$string['mbox'] = 'Identify users by email';
$string['mbox_desc'] = 'Statements will identify users with their email (mbox) when this box is ticked.';
$string['username'] = 'Identify users by id';
$string['username_desc'] = 'Statements will identify users with their username when this box is ticked, but only if identifying users by email is disabled.';
$string['send_username'] = 'Identify users by id';
$string['send_username_desc'] = 'Statements will identify users with their username when this box is ticked, but only if identifying users by email is disabled.';
$string['shortcourseid'] = 'Send short course name';
$string['shortcourseid_desc'] = 'Statements will contain the shortname for a course as a short course id extension';
......@@ -47,9 +47,9 @@ if ($hassiteconfig) {
get_string('shortcourseid', 'logstore_xapi'),
get_string('shortcourseid_desc', 'logstore_xapi'), 0));
$settings->add(new admin_setting_configcheckbox('logstore_xapi/username',
get_string('username', 'logstore_xapi'),
get_string('username_desc', 'logstore_xapi'), 0));
$settings->add(new admin_setting_configcheckbox('logstore_xapi/send_username',
get_string('send_username', 'logstore_xapi'),
get_string('send_username_desc', 'logstore_xapi'), 0));
// Filters.
$settings->add(new admin_setting_heading('filters',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment