mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11700] Correct ucp_auth_link request interface references
PHPBB3-11700
This commit is contained in:
parent
15413f43e4
commit
733020f5f9
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ class ucp_auth_link
|
||||||
$s_hidden_fields = array();
|
$s_hidden_fields = array();
|
||||||
add_form_key('ucp_auth_link');
|
add_form_key('ucp_auth_link');
|
||||||
|
|
||||||
$submit = $request->variable('submit', false, false, phpbb_request_interface::POST);
|
$submit = $request->variable('submit', false, false, \phpbb\request\request_interface::POST);
|
||||||
|
|
||||||
// This path is only for primary actions
|
// This path is only for primary actions
|
||||||
if (!sizeof($error) && $submit)
|
if (!sizeof($error) && $submit)
|
||||||
|
@ -59,7 +59,7 @@ class ucp_auth_link
|
||||||
if (!sizeof($error))
|
if (!sizeof($error))
|
||||||
{
|
{
|
||||||
// Any post data could be necessary for auth (un)linking
|
// Any post data could be necessary for auth (un)linking
|
||||||
$link_data = $request->get_super_global(phpbb_request_interface::POST);
|
$link_data = $request->get_super_global(\phpbb\request\request_interface::POST);
|
||||||
|
|
||||||
// The current user_id is also necessary
|
// The current user_id is also necessary
|
||||||
$link_data['user_id'] = $user->data['user_id'];
|
$link_data['user_id'] = $user->data['user_id'];
|
||||||
|
@ -67,7 +67,7 @@ class ucp_auth_link
|
||||||
// Tell the provider that the method is auth_link not login_link
|
// Tell the provider that the method is auth_link not login_link
|
||||||
$link_data['link_method'] = 'auth_link';
|
$link_data['link_method'] = 'auth_link';
|
||||||
|
|
||||||
if ($request->variable('link', 0, false, phpbb_request_interface::POST))
|
if ($request->variable('link', 0, false, \phpbb\request\request_interface::POST))
|
||||||
{
|
{
|
||||||
$error[] = $auth_provider->link_account($link_data);
|
$error[] = $auth_provider->link_account($link_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue