aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index fdad1df0fd..2f7662982a 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -1746,8 +1746,8 @@ class acp_users
{
$driver = str_replace('_', '.', request_var('avatar_driver', ''));
$config_name = preg_replace('#^avatar.driver.#', '', $driver);
- $av_delete = $request->variable('av_delete', '');
- if (in_array($driver, $avatar_drivers) && $config["allow_avatar_$config_name"] && empty($av_delete))
+ $avatar_delete = $request->variable('avatar_delete', '');
+ if (in_array($driver, $avatar_drivers) && $config["allow_avatar_$config_name"] && empty($avatar_delete))
{
$avatar = $phpbb_avatar_manager->get_driver($driver);
$result = $avatar->process_form($template, $avatar_data, $error);
@@ -1814,15 +1814,15 @@ class acp_users
if ($avatar->prepare_form($template, $avatar_data, $error))
{
- $driver_n = str_replace('.', '_', $driver);
- $driver_u = strtoupper($driver_n);
+ $driver_name = str_replace('.', '_', $driver);
+ $driver_upper = strtoupper($driver_name);
$template->assign_block_vars('avatar_drivers', array(
- 'L_TITLE' => $user->lang($driver_u . '_TITLE'),
- 'L_EXPLAIN' => $user->lang($driver_u . '_EXPLAIN'),
+ 'L_TITLE' => $user->lang($driver_upper . '_TITLE'),
+ 'L_EXPLAIN' => $user->lang($driver_upper . '_EXPLAIN'),
- 'DRIVER' => $driver_n,
- 'SELECTED' => ($driver == $focused_driver),
+ 'DRIVER' => $driver_name,
+ 'SELECTED' => $driver == $focused_driver,
'OUTPUT' => $template->assign_display('avatar'),
));
}