diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-06-19 19:21:59 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-06-19 19:21:59 +0200 |
| commit | 217d9280dd48953d0572f1223c76913eec15a202 (patch) | |
| tree | 8179a264d38ba0a3ad02efb380adfde9db66ac1b | |
| parent | dcd7d962960ade175400cbb9b8e00575e8735a22 (diff) | |
| download | forums-217d9280dd48953d0572f1223c76913eec15a202.tar forums-217d9280dd48953d0572f1223c76913eec15a202.tar.gz forums-217d9280dd48953d0572f1223c76913eec15a202.tar.bz2 forums-217d9280dd48953d0572f1223c76913eec15a202.tar.xz forums-217d9280dd48953d0572f1223c76913eec15a202.zip | |
[feature/new-tz-handling] Fix comment and validation in ACP board module
PHPBB3-9558
| -rw-r--r-- | phpBB/includes/acp/acp_board.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index e018655407..59f7bf707f 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -57,7 +57,7 @@ class acp_board 'board_disable_msg' => false, 'default_lang' => array('lang' => 'DEFAULT_LANGUAGE', 'validate' => 'lang', 'type' => 'select', 'function' => 'language_select', 'params' => array('{CONFIG_VALUE}'), 'explain' => false), 'default_dateformat' => array('lang' => 'DEFAULT_DATE_FORMAT', 'validate' => 'string', 'type' => 'custom', 'method' => 'dateformat_select', 'explain' => true), - 'board_timezone' => array('lang' => 'SYSTEM_TIMEZONE', 'validate' => 'string', 'type' => 'select', 'function' => 'tz_select', 'params' => array('{CONFIG_VALUE}', 1), 'explain' => true), + 'board_timezone' => array('lang' => 'SYSTEM_TIMEZONE', 'validate' => 'timezone', 'type' => 'select', 'function' => 'tz_select', 'params' => array('{CONFIG_VALUE}', 1), 'explain' => true), 'default_style' => array('lang' => 'DEFAULT_STYLE', 'validate' => 'int', 'type' => 'select', 'function' => 'style_select', 'params' => array('{CONFIG_VALUE}', false), 'explain' => false), 'override_user_style' => array('lang' => 'OVERRIDE_STYLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), @@ -908,7 +908,7 @@ class acp_board $old_tz = $user->tz; if (is_numeric($config['board_timezone'])) { - // Might still be numeric by chance + // Might still be numeric $config['board_timezone'] = sprintf('Etc/GMT%+d', $config['board_timezone']); } $user->tz = new DateTimeZone($config['board_timezone']); |
