diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-07-24 11:18:08 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-07-24 11:18:08 +0000 |
commit | 690d2996ea040c7b0df24b4d091108476094bebc (patch) | |
tree | 219b6ee198a125fca9d65b02ef7cb21dc05f2cc0 | |
parent | 0a8a67eb10ddb5e8e493392ad7df3afe20d5ecd1 (diff) | |
download | forums-690d2996ea040c7b0df24b4d091108476094bebc.tar forums-690d2996ea040c7b0df24b4d091108476094bebc.tar.gz forums-690d2996ea040c7b0df24b4d091108476094bebc.tar.bz2 forums-690d2996ea040c7b0df24b4d091108476094bebc.tar.xz forums-690d2996ea040c7b0df24b4d091108476094bebc.zip |
#13751
Fixing date CPFs for multilanguage boards.
git-svn-id: file:///svn/phpbb/trunk@7934 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 17 | ||||
-rw-r--r-- | phpBB/memberlist.php | 2 |
3 files changed, 18 insertions, 2 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 795d986473..dfba1179a3 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -270,6 +270,7 @@ p a { <li>[Fix] Add a confirmation for log deletion in the MCP (Bug #13693)</li> <li>[Fix] Do not erase ranks and avatars when changing default groups (Bugs #13701, #13697)</li> <li>[Fix] Limit author searches to firstpost, if selected (Bug #13579)</li> + <li>[Fix] store Date custom profile field defaults on multi-lingual boards </li> </ul> </div> diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index bc6730abac..35a2f7bcd4 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -631,8 +631,23 @@ class acp_profile $cp->vars['columns'] = request_var('columns', 0); $_new_key_ary[$key] = $cp->vars['rows'] . '|' . $cp->vars['columns']; } + else if ($field_type == FIELD_DATE && $key == 'field_default_value') + { + $always_now = request_var('always_now', 0); - if ($field_type == FIELD_BOOL && $key == 'l_lang_options' && isset($_REQUEST['l_lang_options'])) + if ($always_now) + { + $_new_key_ary[$key] = 'now'; + } + else if (isset($_REQUEST['field_default_value_day'])) + { + $cp->vars['field_default_value_day'] = request_var('field_default_value_day', 0); + $cp->vars['field_default_value_month'] = request_var('field_default_value_month', 0); + $cp->vars['field_default_value_year'] = request_var('field_default_value_year', 0); + $_new_key_ary[$key] = sprintf('%2d-%2d-%4d', $cp->vars['field_default_value_day'], $cp->vars['field_default_value_month'], $cp->vars['field_default_value_year']); + } + } + else if ($field_type == FIELD_BOOL && $key == 'l_lang_options' && isset($_REQUEST['l_lang_options'])) { $_new_key_ary[$key] = utf8_normalize_nfc(request_var($key, array(array('')), true)); } diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 759355481f..486c99b3c0 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -590,7 +590,7 @@ switch ($mode) ); } - // Now generate page tilte + // Now generate page title $page_title = sprintf($user->lang['VIEWING_PROFILE'], $member['username']); $template_html = 'memberlist_view.html'; |