1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/avatars] Dynamically list the avatar types in UCP and ACP

List the avatar types more nicely, adding UCP modify user support

PHPBB3-10018
This commit is contained in:
Cullen Walsh
2011-06-15 12:58:02 -07:00
committed by Cullen Walsh
parent 6d0f2e4788
commit 22c864cb3a
3 changed files with 103 additions and 48 deletions

View File

@@ -589,8 +589,10 @@ class ucp_profile
$avatar_drivers = $avatar_manager->get_valid_drivers();
sort($avatar_drivers);
foreach ($avatar_drivers as $driver) {
if ($config["allow_avatar_$driver"]) {
foreach ($avatar_drivers as $driver)
{
if ($config["allow_avatar_$driver"])
{
$avatars_enabled = true;
$template->set_filenames(array(
'avatar' => "ucp_avatar_options_$driver.html",
@@ -625,7 +627,8 @@ class ucp_profile
}
}
if ($avatar->prepare_form($template, $user->data, $error)) {
if ($avatar->prepare_form($template, $user->data, $error))
{
$driver_u = strtoupper($driver);
$template->assign_block_vars('avatar_drivers', array(