1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-20 15:31:42 +02:00

[ticket/11201] Rename profilefields class to manager

PHPBB3-11201
This commit is contained in:
Joas Schilling
2014-02-02 12:53:29 +01:00
parent 514a59ffa7
commit 7bcbdfc1b1
13 changed files with 33 additions and 33 deletions

View File

@@ -617,7 +617,7 @@ switch ($mode)
$profile_fields = array();
if ($config['load_cpf_viewprofile'])
{
$cp = $phpbb_container->get('profilefields');
$cp = $phpbb_container->get('profilefields.manager');
$profile_fields = $cp->generate_profile_fields_template('grab', $user_id);
$profile_fields = (isset($profile_fields[$user_id])) ? $cp->generate_profile_fields_template('show', false, $profile_fields[$user_id]) : array();
}
@@ -1554,7 +1554,7 @@ switch ($mode)
// Load custom profile fields
if ($config['load_cpf_memberlist'])
{
$cp = $phpbb_container->get('profilefields');
$cp = $phpbb_container->get('profilefields.manager');
// Grab all profile fields from users in id cache for later use - similar to the poster cache
$profile_fields_cache = $cp->generate_profile_fields_template('grab', $user_list);