mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-15 05:04:09 +02:00
[feature/new-tz-handling] Don't use global user but make it a parameter
PHPBB3-9558
This commit is contained in:
@@ -131,7 +131,7 @@ class ucp_prefs
|
||||
}
|
||||
$dateformat_options .= '>' . $user->lang['CUSTOM_DATEFORMAT'] . '</option>';
|
||||
|
||||
$timezone_selects = phpbb_timezone_select($data['tz'], true, false);
|
||||
$timezone_selects = phpbb_timezone_select($user, $data['tz'], true);
|
||||
$template->assign_vars(array(
|
||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
||||
|
||||
|
@@ -442,7 +442,7 @@ class ucp_register
|
||||
break;
|
||||
}
|
||||
|
||||
$timezone_selects = phpbb_timezone_select($data['tz'], true, false);
|
||||
$timezone_selects = phpbb_timezone_select($user, $data['tz'], true);
|
||||
$template->assign_vars(array(
|
||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
||||
'USERNAME' => $data['username'],
|
||||
|
Reference in New Issue
Block a user