aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-11-25 16:04:59 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-11-25 16:05:57 +0100
commit06639729ea2da6d0025da74ae7d4f3e88f211b67 (patch)
tree95e41d8ce8f741eeaff004739771ec47698357ab /phpBB/includes/ucp/ucp_profile.php
parent6d061304afaa703a5305a06a903356d1c48ff2ee (diff)
downloadforums-06639729ea2da6d0025da74ae7d4f3e88f211b67.tar
forums-06639729ea2da6d0025da74ae7d4f3e88f211b67.tar.gz
forums-06639729ea2da6d0025da74ae7d4f3e88f211b67.tar.bz2
forums-06639729ea2da6d0025da74ae7d4f3e88f211b67.tar.xz
forums-06639729ea2da6d0025da74ae7d4f3e88f211b67.zip
[feature/avatars] Add static methods for handling driver names
PHPBB3-10018
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 3945fc537a..36ac227bc8 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -564,7 +564,7 @@ class ucp_profile
{
if (check_form_key('ucp_avatar'))
{
- $driver = str_replace('_', '.', request_var('avatar_driver', ''));
+ $driver = $phpbb_avatar_manager->clean_driver_name($request->variable('avatar_driver', ''));
$config_name = preg_replace('#^avatar\.driver.#', '', $driver);
$avatar_delete = $request->variable('avatar_delete', '');
if (in_array($driver, $avatar_drivers) && $config["allow_avatar_$config_name"] && empty($avatar_delete))
@@ -624,7 +624,7 @@ class ucp_profile
}
}
- $focused_driver = str_replace('_', '.', request_var('avatar_driver', $user->data['user_avatar_type']));
+ $focused_driver = $phpbb_avatar_manager->clean_driver_name($request->variable('avatar_driver', $user->data['user_avatar_type']));
foreach ($avatar_drivers as $driver)
{
@@ -639,7 +639,7 @@ class ucp_profile
if ($avatar->prepare_form($template, $avatar_data, $error))
{
- $driver_name = str_replace('.', '_', $driver);
+ $driver_name = $phpbb_avatar_manager->prepare_driver_name($driver);
$driver_upper = strtoupper($driver_name);
$template->assign_block_vars('avatar_drivers', array(