aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-19 10:34:21 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-07-19 14:24:59 +0200
commitd099ef8cade0194fa8056439d489b159d5890f29 (patch)
tree57626731c8f3c4fb3f8951b3aa789c85328388c1 /phpBB/includes
parent81627e2888ac0987c941775276a720c2aa7fe142 (diff)
downloadforums-d099ef8cade0194fa8056439d489b159d5890f29.tar
forums-d099ef8cade0194fa8056439d489b159d5890f29.tar.gz
forums-d099ef8cade0194fa8056439d489b159d5890f29.tar.bz2
forums-d099ef8cade0194fa8056439d489b159d5890f29.tar.xz
forums-d099ef8cade0194fa8056439d489b159d5890f29.zip
[feature/new-tz-handling] Display suggestion when a different value is selected
PHPBB3-9558
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 6a4a67f9d7..c6abcb27ef 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1207,7 +1207,7 @@ function phpbb_timezone_select($default = '', $truncate = false)
$opt_group = $timezone['offest'];
$selected = ($default_offset == $timezone['offest']) ? ' selected="selected"' : '';
- $tz_dates .= '<option value="' . $timezone['offest'] . ' - ' . $timezone['current'] . '"' . $selected . '>' . $timezone['offest'] . ' - ' . $timezone['current'] . '</option>';
+ $tz_dates .= '<option value="' . $timezone['offest'] . ' - ' . $timezone['current'] . '"' . $selected . '>' . $timezone['offest'] . ' - ' . $timezone['current'] . ($selected ? ' ' . $user->lang['TIMEZONE_SELECTED'] : '') . '</option>';
}
if (isset($user->lang['timezones'][$timezone['tz']]))
@@ -1229,7 +1229,7 @@ function phpbb_timezone_select($default = '', $truncate = false)
}
$selected = ($timezone['tz'] === $default) ? ' selected="selected"' : '';
- $tz_select .= '<option title="' . $title . '" value="' . $timezone['tz'] . '"' . $selected . '>' . $label . '</option>';
+ $tz_select .= '<option title="' . $title . '" value="' . $timezone['tz'] . '"' . $selected . '>' . $label . ($selected ? ' ' . $user->lang['TIMEZONE_SELECTED'] : '') . '</option>';
}
$tz_select .= '</optgroup>';