aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2015-07-30 10:48:39 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-01-02 17:16:23 +0100
commit917c864bbf51309da4c8bda7ad03e1e00afc0764 (patch)
treea1578b45dacc00e25758208ceacae02d49626891 /phpBB/includes/acp/acp_users.php
parent06f4b6926baaf27897b2f57f7938eed4acf5dedb (diff)
downloadforums-917c864bbf51309da4c8bda7ad03e1e00afc0764.tar
forums-917c864bbf51309da4c8bda7ad03e1e00afc0764.tar.gz
forums-917c864bbf51309da4c8bda7ad03e1e00afc0764.tar.bz2
forums-917c864bbf51309da4c8bda7ad03e1e00afc0764.tar.xz
forums-917c864bbf51309da4c8bda7ad03e1e00afc0764.zip
[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 directly when required. 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. Simplified manager interface by reducing unneeded methods. PHPBB3-14387
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index ac31ac36a1..aa4470fd0e 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -1878,9 +1878,8 @@ class acp_users
$driver = $phpbb_avatar_manager->get_driver($current_driver);
$avatars_enabled = true;
- $template_name = $phpbb_avatar_manager->get_driver_template_name($driver);
$template->set_filenames(array(
- 'avatar' => $template_name,
+ 'avatar' => $driver->get_acp_template_name(),
));
if ($driver->prepare_form($request, $template, $user, $avatar_data, $error))