mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
More fixes for CPFs. I believe the wizard should now work for all types, even with several languages. Testing is encouraged.
git-svn-id: file:///svn/phpbb/trunk@7941 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f813c7ad0d
commit
88250b0857
2 changed files with 5 additions and 6 deletions
|
@ -276,7 +276,7 @@ p a {
|
|||
<li>[Fix] Properly display the subscribe link in topic and forum display for Oracle (Bug #13583)</li>
|
||||
<li>[Change] Add version number to ACP index (Bug #13703)</li>
|
||||
<li>[Fix] Quick-Mod tools now retaining the start parameter (Bug #13537)</li>
|
||||
|
||||
<li>[Fix] Several fixes for custom profile fields on multi-lingual boards </li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -931,10 +931,9 @@ class acp_profile
|
|||
foreach ($options as $field => $field_type)
|
||||
{
|
||||
$value = ($action == 'create') ? utf8_normalize_nfc(request_var('l_' . $field, array(0 => ''), true)) : $cp->vars['l_' . $field];
|
||||
|
||||
if ($field == 'lang_options')
|
||||
{
|
||||
$var = ($action == 'create' || !is_array($cp->vars['l_lang_options'][$lang_id])) ? $cp->vars['lang_options'] : $cp->vars['lang_options'][$lang_id];
|
||||
$var = (!isset($cp->vars['l_lang_options'][$lang_id]) || !is_array($cp->vars['l_lang_options'][$lang_id])) ? $cp->vars['lang_options'] : $cp->vars['l_lang_options'][$lang_id];
|
||||
|
||||
switch ($field_type)
|
||||
{
|
||||
|
@ -949,10 +948,10 @@ class acp_profile
|
|||
break;
|
||||
|
||||
case 'optionfield':
|
||||
|
||||
$value = ((isset($value[$lang_id])) ? ((is_array($value[$lang_id])) ? implode("\n", $value[$lang_id]) : $value[$lang_id]) : implode("\n", $var));
|
||||
$lang_options[$lang_id]['fields'][$field] = array(
|
||||
'TITLE' => $user->lang['CP_' . strtoupper($field)],
|
||||
'FIELD' => '<dd><textarea name="l_' . $field . '[' . $lang_id . ']" rows="7" cols="80">' . ((isset($value[$lang_id])) ? implode("\n", $value[$lang_id]) : implode("\n", $var)) . '</textarea></dd>'
|
||||
'FIELD' => '<dd><textarea name="l_' . $field . '[' . $lang_id . ']" rows="7" cols="80">' . $value . '</textarea></dd>'
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue