diff --git a/admin/tool/mobile/classes/api.php b/admin/tool/mobile/classes/api.php index 921ad812998..d9eba16b193 100644 --- a/admin/tool/mobile/classes/api.php +++ b/admin/tool/mobile/classes/api.php @@ -197,6 +197,7 @@ class api { 'tool_mobile_iosappid' => get_config('tool_mobile', 'iosappid'), 'tool_mobile_androidappid' => get_config('tool_mobile', 'androidappid'), 'tool_mobile_setuplink' => clean_param(get_config('tool_mobile', 'setuplink'), PARAM_URL), + 'tool_mobile_qrcodetype' => clean_param(get_config('tool_mobile', 'qrcodetype'), PARAM_INT), ); $typeoflogin = get_config('tool_mobile', 'typeoflogin'); diff --git a/admin/tool/mobile/classes/external.php b/admin/tool/mobile/classes/external.php index 8b9057c0f04..e72cab0a720 100644 --- a/admin/tool/mobile/classes/external.php +++ b/admin/tool/mobile/classes/external.php @@ -187,6 +187,7 @@ class external extends external_api { 'tool_mobile_androidappid' => new external_value(PARAM_NOTAGS, 'Android app\'s unique identifier.', VALUE_OPTIONAL), 'tool_mobile_setuplink' => new external_value(PARAM_URL, 'App download page.', VALUE_OPTIONAL), + 'tool_mobile_qrcodetype' => new external_value(PARAM_INT, 'QR login configuration.', VALUE_OPTIONAL), 'warnings' => new external_warnings(), ) ); diff --git a/admin/tool/mobile/tests/externallib_test.php b/admin/tool/mobile/tests/externallib_test.php index 00d75a6e939..5fa0e5039e5 100644 --- a/admin/tool/mobile/tests/externallib_test.php +++ b/admin/tool/mobile/tests/externallib_test.php @@ -99,6 +99,7 @@ class tool_mobile_external_testcase extends externallib_advanced_testcase { 'tool_mobile_iosappid' => get_config('tool_mobile', 'iosappid'), 'tool_mobile_androidappid' => get_config('tool_mobile', 'androidappid'), 'tool_mobile_setuplink' => get_config('tool_mobile', 'setuplink'), + 'tool_mobile_qrcodetype' => get_config('tool_mobile', 'qrcodetype'), 'warnings' => array() ); $this->assertEquals($expected, $result);