mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Merge pull request #2773 from bantu/ticket/12887
[ticket/12887] Fix Typo: offest -> offset
This commit is contained in:
commit
8064d2931f
1 changed files with 7 additions and 7 deletions
|
@ -1067,7 +1067,7 @@ function phpbb_timezone_select($user, $default = '', $truncate = false)
|
||||||
$offset_string = phpbb_format_timezone_offset($offset);
|
$offset_string = phpbb_format_timezone_offset($offset);
|
||||||
$timezones['GMT' . $offset_string . ' - ' . $timezone] = array(
|
$timezones['GMT' . $offset_string . ' - ' . $timezone] = array(
|
||||||
'tz' => $timezone,
|
'tz' => $timezone,
|
||||||
'offest' => 'GMT' . $offset_string,
|
'offset' => 'GMT' . $offset_string,
|
||||||
'current' => $current_time,
|
'current' => $current_time,
|
||||||
);
|
);
|
||||||
if ($timezone === $default)
|
if ($timezone === $default)
|
||||||
|
@ -1084,14 +1084,14 @@ function phpbb_timezone_select($user, $default = '', $truncate = false)
|
||||||
|
|
||||||
foreach ($timezones as $timezone)
|
foreach ($timezones as $timezone)
|
||||||
{
|
{
|
||||||
if ($opt_group != $timezone['offest'])
|
if ($opt_group != $timezone['offset'])
|
||||||
{
|
{
|
||||||
$tz_select .= ($opt_group) ? '</optgroup>' : '';
|
$tz_select .= ($opt_group) ? '</optgroup>' : '';
|
||||||
$tz_select .= '<optgroup label="' . $timezone['offest'] . ' - ' . $timezone['current'] . '">';
|
$tz_select .= '<optgroup label="' . $timezone['offset'] . ' - ' . $timezone['current'] . '">';
|
||||||
$opt_group = $timezone['offest'];
|
$opt_group = $timezone['offset'];
|
||||||
|
|
||||||
$selected = ($default_offset == $timezone['offest']) ? ' selected="selected"' : '';
|
$selected = ($default_offset == $timezone['offset']) ? ' selected="selected"' : '';
|
||||||
$tz_dates .= '<option value="' . $timezone['offest'] . ' - ' . $timezone['current'] . '"' . $selected . '>' . $timezone['offest'] . ' - ' . $timezone['current'] . '</option>';
|
$tz_dates .= '<option value="' . $timezone['offset'] . ' - ' . $timezone['current'] . '"' . $selected . '>' . $timezone['offset'] . ' - ' . $timezone['current'] . '</option>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$label = $timezone['tz'];
|
$label = $timezone['tz'];
|
||||||
|
@ -1099,7 +1099,7 @@ function phpbb_timezone_select($user, $default = '', $truncate = false)
|
||||||
{
|
{
|
||||||
$label = $user->lang['timezones'][$label];
|
$label = $user->lang['timezones'][$label];
|
||||||
}
|
}
|
||||||
$title = $timezone['offest'] . ' - ' . $label;
|
$title = $timezone['offset'] . ' - ' . $label;
|
||||||
|
|
||||||
if ($truncate)
|
if ($truncate)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue