1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[feature/avatars] Only create avatar objects if necessary

PHPBB3-10018
This commit is contained in:
Marc Alexander
2012-11-25 14:33:13 +01:00
parent ce5e2f1677
commit 67c2e48d15
7 changed files with 14 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ class ucp_groups
{
global $config, $phpbb_root_path, $phpEx;
global $db, $user, $auth, $cache, $template;
global $request, $phpbb_avatar_manager;
global $request, $phpbb_container;
$user->add_lang('groups');
@@ -484,6 +484,7 @@ class ucp_groups
$error = array();
// Setup avatar data for later
$phpbb_avatar_manager = $phpbb_container->get('avatar.manager');
$avatars_enabled = false;
$avatar_drivers = null;
$avatar_data = null;