1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/14387] Extend avatar-driver by extension in ACP not possible

Create two driver methods to provide the driver config name and the
driver ACP template name, and use them within the manager method.
Default driver config name and template name are the same as now.
But new drivers are able to override the config name and template
name with their own, including @vendor_extension.

PHPBB3-14387
This commit is contained in:
javiexin
2015-07-30 01:43:18 +02:00
committed by Marc Alexander
parent 14dc274e9e
commit 06f4b6926b
5 changed files with 31 additions and 4 deletions

View File

@@ -672,9 +672,9 @@ class acp_groups
$driver = $phpbb_avatar_manager->get_driver($current_driver);
$avatars_enabled = true;
$config_name = $phpbb_avatar_manager->get_driver_config_name($driver);
$template_name = $phpbb_avatar_manager->get_driver_template_name($driver);
$template->set_filenames(array(
'avatar' => "acp_avatar_options_{$config_name}.html",
'avatar' => $template_name,
));
if ($driver->prepare_form($request, $template, $user, $avatar_data, $avatar_error))