aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-12-04 15:12:04 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-12-04 15:12:04 +0100
commitfb139a88203fb5475712c2bc39e653996cd9103f (patch)
tree3e26453bf8ba32c73c62bbc2e12b3e23f978d444 /phpBB/includes/acp
parent8aaa3e055fdc50faeea6f590408a7bcbb03a8d92 (diff)
downloadforums-fb139a88203fb5475712c2bc39e653996cd9103f.tar
forums-fb139a88203fb5475712c2bc39e653996cd9103f.tar.gz
forums-fb139a88203fb5475712c2bc39e653996cd9103f.tar.bz2
forums-fb139a88203fb5475712c2bc39e653996cd9103f.tar.xz
forums-fb139a88203fb5475712c2bc39e653996cd9103f.zip
[feature/avatars] Fix behavior of avatar manager and variables
The $force_all variable was only partially removed and the behavior was not consistent in all files. PHPBB3-10018
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_board.php2
-rw-r--r--phpBB/includes/acp/acp_groups.php10
2 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 9e63e59403..a48d6eda83 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -113,7 +113,7 @@ class acp_board
$avatar_vars = array();
foreach ($avatar_drivers as $current_driver)
{
- $driver = $phpbb_avatar_manager->get_driver($current_driver);
+ $driver = $phpbb_avatar_manager->get_driver($current_driver, false);
/*
* First grab the settings for enabling/disabling the avatar
diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php
index b425b9d374..ae0abdd139 100644
--- a/phpBB/includes/acp/acp_groups.php
+++ b/phpBB/includes/acp/acp_groups.php
@@ -522,26 +522,26 @@ class acp_groups
$avatars_enabled = false;
$selected_driver = $phpbb_avatar_manager->clean_driver_name($request->variable('avatar_driver', $avatar_data['avatar_type']));
- foreach ($avatar_drivers as $driver)
+ foreach ($avatar_drivers as $current_driver)
{
- $driver = $phpbb_avatar_manager->get_driver($driver);
+ $driver = $phpbb_avatar_manager->get_driver($current_driver);
$avatars_enabled = true;
- $config_name = preg_replace('#^avatar\.driver.#', '', $driver);
+ $config_name = $phpbb_avatar_manager->get_driver_config_name($driver);
$template->set_filenames(array(
'avatar' => "acp_avatar_options_$config_name.html",
));
if ($driver->prepare_form($template, $avatar_data, $avatar_error))
{
- $driver_name = $phpbb_avatar_manager->prepare_driver_name($driver);
+ $driver_name = $phpbb_avatar_manager->prepare_driver_name($current_driver);
$driver_upper = strtoupper($driver_name);
$template->assign_block_vars('avatar_drivers', array(
'L_TITLE' => $user->lang($driver_upper . '_TITLE'),
'L_EXPLAIN' => $user->lang($driver_upper . '_EXPLAIN'),
'DRIVER' => $driver_name,
- 'SELECTED' => $driver == $selected_driver,
+ 'SELECTED' => $current_driver == $selected_driver,
'OUTPUT' => $template->assign_display('avatar'),
));
}