diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-10-30 14:25:00 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-11-01 21:54:21 +0100 |
commit | a9249bce5ec73b4a4a11d2db13938db6fc4dcaec (patch) | |
tree | a99066467bd563f6d83d111f7b51f99df5b201e3 /phpBB/includes/ucp/ucp_login_link.php | |
parent | c3f5dc75bed689956b7d4ed1e5b7e0d2c80257c9 (diff) | |
download | forums-a9249bce5ec73b4a4a11d2db13938db6fc4dcaec.tar forums-a9249bce5ec73b4a4a11d2db13938db6fc4dcaec.tar.gz forums-a9249bce5ec73b4a4a11d2db13938db6fc4dcaec.tar.bz2 forums-a9249bce5ec73b4a4a11d2db13938db6fc4dcaec.tar.xz forums-a9249bce5ec73b4a4a11d2db13938db6fc4dcaec.zip |
[ticket/13248] Always use provider collection for getting provider
PHPBB3-13248
Diffstat (limited to 'phpBB/includes/ucp/ucp_login_link.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_login_link.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_login_link.php b/phpBB/includes/ucp/ucp_login_link.php index 5ca5df00f7..27d59c56b7 100644 --- a/phpBB/includes/ucp/ucp_login_link.php +++ b/phpBB/includes/ucp/ucp_login_link.php @@ -39,7 +39,7 @@ class ucp_login_link */ function main($id, $mode) { - global $config, $phpbb_container, $request, $template, $user; + global $phpbb_container, $request, $template, $user; global $phpbb_root_path, $phpEx; // Initialize necessary variables @@ -57,8 +57,8 @@ class ucp_login_link } // Use the auth_provider requested even if different from configured - $auth_provider = 'auth.provider.' . $request->variable('auth_provider', $config['auth_method']); - $auth_provider = $phpbb_container->get($auth_provider); + $provider_collection = $phpbb_container->get('auth.provider_collection'); + $auth_provider = $provider_collection->get_provider($request->variable('auth_provider', '')); // Set the link_method to login_link $data['link_method'] = 'login_link'; |