diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-23 14:13:51 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-23 14:14:09 -0400 |
commit | 32678f63ed04a8770720da4d94d01648dc595e82 (patch) | |
tree | 17761a9b5940b8d2793aa85b87671a577adf8938 /phpBB/phpbb/auth/provider | |
parent | 93cbdc37b51edf14cb2dbebb1ccb71a612f7fd94 (diff) | |
download | forums-32678f63ed04a8770720da4d94d01648dc595e82.tar forums-32678f63ed04a8770720da4d94d01648dc595e82.tar.gz forums-32678f63ed04a8770720da4d94d01648dc595e82.tar.bz2 forums-32678f63ed04a8770720da4d94d01648dc595e82.tar.xz forums-32678f63ed04a8770720da4d94d01648dc595e82.zip |
[feature/oauth] Finish the template so it "works"
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 31450a573f..6ad0293e8e 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -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; |