1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-26 13:16:14 +01:00

[ticket/12759] Cache all lang_options in lang_helper instead

PHPBB3-12759
This commit is contained in:
Shitiz Garg
2014-06-26 03:07:45 +05:30
parent c1df2ce62a
commit 2cf4a4f6fe
7 changed files with 37 additions and 84 deletions

View File

@@ -367,33 +367,6 @@ class manager
return $user_fields;
}
/**
* Cache user's profile fields' language options
* @param array $profile_row Array with users profile field data
* @return void
*/
public function cache_profile_fields_lang_options($profile_row)
{
if (!empty($profile_row))
{
$field_ids = array();
foreach ($profile_row as $ident_ary)
{
if (empty($field_ids[$ident_ary['data']['lang_id']]))
{
$field_ids[$ident_ary['data']['lang_id']] = array();
}
$field_ids[$ident_ary['data']['lang_id']][] = $ident_ary['data']['field_id'];
}
foreach ($field_ids as $lang => $fields)
{
$this->lang_helper->get_option_lang($fields, $lang, false);
}
}
}
/**
* Assign the user's profile fields data to the template
*