1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/oauth] Finish the template so it "works"

PHPBB3-11673
This commit is contained in:
Joseph Warner
2013-07-23 14:13:51 -04:00
parent 93cbdc37b5
commit 32678f63ed
2 changed files with 8 additions and 5 deletions

View File

@@ -271,9 +271,12 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
foreach ($this->service_providers as $service_name => $service_provider)
{
$actual_name = str_replace('auth.provider.oauth.service.', '', $service_name);
$ret['TEMPLATE_VARS'][$actual_name] = array();
$ret['TEMPLATE_VARS'][$actual_name]['NAME'] = $actual_name;
$ret['TEMPLATE_VARS'][$actual_name]['ACTUAL_NAME'] = 'L_AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name);
$ret['TEMPLATE_VARS'][$actual_name] = array(
'ACTUAL_NAME' => 'L_AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name),
'KEY' => $new_config['auth_oauth_' . $actual_name . '_key'],
'NAME' => $actual_name,
'SECRET' => $new_config['auth_oauth_' . $actual_name . '_secret'],
);
}
return $ret;