mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/17100] Move timezone select HTML from PHP file
PHPBB3-17100
This commit is contained in:
@@ -1052,11 +1052,15 @@ class acp_board
|
||||
*/
|
||||
function timezone_select($value, $key)
|
||||
{
|
||||
global $template, $user;
|
||||
global $user;
|
||||
|
||||
$timezone_select = phpbb_timezone_select($template, $user, $value, true);
|
||||
$timezone_select = phpbb_timezone_select($user, $value, true);
|
||||
|
||||
return '<select name="config[' . $key . ']" id="' . $key . '">' . $timezone_select . '</select>';
|
||||
return [
|
||||
'tag' => 'select',
|
||||
'name' => 'config[' . $key . ']',
|
||||
'options' => $timezone_select,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1795,7 +1795,7 @@ class acp_users
|
||||
${'s_sort_' . $sort_option . '_dir'} .= '</select>';
|
||||
}
|
||||
|
||||
phpbb_timezone_select($template, $user, $data['tz'], true);
|
||||
$timezone_select = phpbb_timezone_select($user, $data['tz'], true);
|
||||
$lang_options = phpbb_language_select($db, $data['lang']);
|
||||
|
||||
$user_prefs_data = array(
|
||||
@@ -1839,6 +1839,11 @@ class acp_users
|
||||
'options' => $lang_options,
|
||||
],
|
||||
'S_STYLE_OPTIONS' => style_select($data['style']),
|
||||
'TIMEZONE_OPTIONS' => [
|
||||
'tag' => 'select',
|
||||
'name' => 'tz',
|
||||
'options' => $timezone_select,
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user