1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-25 17:41:25 +02:00

[feature/new-tz-handling] Don't use global user but make it a parameter

PHPBB3-9558
This commit is contained in:
Joas Schilling
2012-07-19 17:41:27 +02:00
parent 5b7884907c
commit 7df1c84447
5 changed files with 11 additions and 8 deletions

View File

@@ -901,7 +901,9 @@ class acp_board
*/
function timezone_select($value, $key)
{
$timezone_select = phpbb_timezone_select($value, true);
global $user;
$timezone_select = phpbb_timezone_select($user, $value, true);
$timezone_select['tz_select'];
return '<select name="config[' . $key . ']" id="' . $key . '">' . $timezone_select['tz_select'] . '</select>';