mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11626] Include the template file in acp_board
PHPBB3-11626
This commit is contained in:
parent
80eb95bbb7
commit
29b472c2e5
3 changed files with 5 additions and 6 deletions
|
@ -34,7 +34,7 @@
|
|||
|
||||
<!-- IF S_AUTH -->
|
||||
<!-- BEGIN auth_tpl -->
|
||||
{auth_tpl.TPL}
|
||||
<!-- INCLUDE {auth_tpl.TPL} -->
|
||||
<!-- END auth_tpl -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
|
|
|
@ -655,15 +655,13 @@ class acp_board
|
|||
|
||||
foreach ($auth_providers as $provider)
|
||||
{
|
||||
$fields = $provider->acp($this->new_config);
|
||||
|
||||
if ($fields['tpl'])
|
||||
$auth_tpl = $provider->get_acp_template($this->new_config);
|
||||
if ($auth_tpl)
|
||||
{
|
||||
$template->assign_block_vars('auth_tpl', array(
|
||||
'TPL' => $fields['tpl'],
|
||||
'TPL' => $provider->get_acp_template($this->new_config),
|
||||
));
|
||||
}
|
||||
unset($fields);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ class phpbb_auth_provider_ldap extends phpbb_auth_provider_base
|
|||
$this->db = $db;
|
||||
$this->config = $config;
|
||||
$this->user = $user;
|
||||
$this->template = $template;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue