1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/17100] Move timezone select HTML from PHP file

PHPBB3-17100
This commit is contained in:
Marc Alexander
2022-06-01 21:08:12 +02:00
parent 540097eed7
commit 015472ab91
10 changed files with 113 additions and 86 deletions

View File

@@ -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,
];
}
/**