[ticket/13248] Correctly pass provider name

PHPBB3-13248
This commit is contained in:
Marc Alexander 2014-10-30 16:54:43 +01:00
parent a9249bce5e
commit d9c868d0f5

View file

@ -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);