aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-22 17:27:16 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-22 17:27:56 -0400
commit5578b7a578cd9b2e8045d65c883a355f7a9f5394 (patch)
treeaaa3e7af76b4c074c1d349c3de2daf03f0556a88 /phpBB/includes/functions.php
parent0be81468e7f61b8c2fc1c9729ff5d217c7424026 (diff)
downloadforums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar
forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar.gz
forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar.bz2
forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar.xz
forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.zip
[feature/oauth] Initial UI element added, this is non-final
At this point, all UI changes are purely for testing and should not be considered final. PHPBB3-11673
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 1bb9cc8299..bbe3033fb5 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3373,6 +3373,13 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
{
$auth_provider = $phpbb_container->get('auth.provider.oauth');
$oauth_box_data = $auth_provider->get_login_data();
+ foreach ($oauth_box_data as $service_name => $data)
+ {
+ $template->assign_block_vars('oauth', array(
+ 'SERVICE_NAME' => $service_name,
+ 'REDIRECT_URL' => $data['url'],
+ ));
+ }
}
$s_hidden_fields = build_hidden_fields($s_hidden_fields);