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

[feature/oauth] ACP options for OAuth, needs some work

PHPBB3-11673
This commit is contained in:
Joseph Warner
2013-07-23 14:06:01 -04:00
parent 5578b7a578
commit 93cbdc37b5
4 changed files with 55 additions and 1 deletions

View File

@@ -658,7 +658,15 @@ class acp_board
$auth_tpl = $provider->get_acp_template($this->new_config);
if ($auth_tpl)
{
$template->assign_vars($auth_tpl['TEMPLATE_VARS']);
if (array_key_exists('BLOCK_VAR_NAME', $auth_tpl))
{
foreach ($auth_tpl['TEMPLATE_VARS'] as $block_vars)
{
$template->assign_block_vars($auth_tpl['BLOCK_VAR_NAME'], $block_vars);
}
} else {
$template->assign_vars($auth_tpl['TEMPLATE_VARS']);
}
$template->assign_block_vars('auth_tpl', array(
'TEMPLATE_FILE' => $auth_tpl['TEMPLATE_FILE'],
));