mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[ticket/13248] Correctly pass provider name
PHPBB3-13248
This commit is contained in:
@@ -49,7 +49,7 @@ class provider_collection extends \phpbb\di\service_collection
|
||||
*/
|
||||
public function get_provider($provider_name = '')
|
||||
{
|
||||
$provider_name = ($provider_name !== '') ?: basename(trim($this->config['auth_method']));
|
||||
$provider_name = ($provider_name !== '') ? $provider_name : basename(trim($this->config['auth_method']));
|
||||
if ($this->offsetExists('auth.provider.' . $provider_name))
|
||||
{
|
||||
return $this->offsetGet('auth.provider.' . $provider_name);
|
||||
|
Reference in New Issue
Block a user