mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/11201] Rename profilefields class to manager
PHPBB3-11201
This commit is contained in:
@@ -50,7 +50,7 @@ class acp_profile
|
||||
trigger_error($user->lang['NO_FIELD_ID'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
$cp = $phpbb_container->get('profilefields');
|
||||
$cp = $phpbb_container->get('profilefields.manager');
|
||||
$this->type_collection = $phpbb_container->get('profilefields.type_collection');
|
||||
|
||||
// Build Language array
|
||||
|
@@ -1344,7 +1344,7 @@ class acp_users
|
||||
|
||||
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
||||
|
||||
$cp = $phpbb_container->get('profilefields');
|
||||
$cp = $phpbb_container->get('profilefields.manager');
|
||||
|
||||
$cp_data = $cp_error = array();
|
||||
|
||||
|
@@ -276,7 +276,7 @@ function user_add($user_row, $cp_data = false)
|
||||
{
|
||||
$cp_data['user_id'] = (int) $user_id;
|
||||
|
||||
$cp = $phpbb_container->get('profilefields');
|
||||
$cp = $phpbb_container->get('profilefields.manager');
|
||||
$sql = 'INSERT INTO ' . PROFILE_FIELDS_DATA_TABLE . ' ' .
|
||||
$db->sql_build_array('INSERT', $cp->build_insert_sql_array($cp_data));
|
||||
$db->sql_query($sql);
|
||||
|
@@ -61,7 +61,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
|
||||
// Load the custom profile fields
|
||||
if ($config['load_cpf_pm'])
|
||||
{
|
||||
$cp = $phpbb_container->get('profilefields');
|
||||
$cp = $phpbb_container->get('profilefields.manager');
|
||||
|
||||
$profile_fields = $cp->generate_profile_fields_template('grab', $author_id);
|
||||
}
|
||||
|
@@ -256,7 +256,7 @@ class ucp_profile
|
||||
trigger_error('NO_AUTH_PROFILEINFO');
|
||||
}
|
||||
|
||||
$cp = $phpbb_container->get('profilefields');
|
||||
$cp = $phpbb_container->get('profilefields.manager');
|
||||
|
||||
$cp_data = $cp_error = array();
|
||||
|
||||
|
@@ -76,7 +76,7 @@ class ucp_register
|
||||
}
|
||||
}
|
||||
|
||||
$cp = $phpbb_container->get('profilefields');
|
||||
$cp = $phpbb_container->get('profilefields.manager');
|
||||
|
||||
$error = $cp_data = $cp_error = array();
|
||||
$s_hidden_fields = array();
|
||||
|
Reference in New Issue
Block a user