mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +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 = '')
|
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))
|
if ($this->offsetExists('auth.provider.' . $provider_name))
|
||||||
{
|
{
|
||||||
return $this->offsetGet('auth.provider.' . $provider_name);
|
return $this->offsetGet('auth.provider.' . $provider_name);
|
||||||
|
Reference in New Issue
Block a user