mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
hrm, different storage of config value and user timezone value. ;)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4113 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
11d8fdd299
commit
ae6b2b7e89
2 changed files with 2 additions and 3 deletions
|
@ -66,7 +66,7 @@ $template->set_filenames(array(
|
||||||
|
|
||||||
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
|
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
|
||||||
$l_timezone = explode('.', $board_config['board_timezone']);
|
$l_timezone = explode('.', $board_config['board_timezone']);
|
||||||
$l_timezone = ($l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
|
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
|
||||||
|
|
||||||
//
|
//
|
||||||
// The following assigns all _common_ variables that may be used at any point
|
// The following assigns all _common_ variables that may be used at any point
|
||||||
|
|
|
@ -337,8 +337,7 @@ while( list($nav_item, $nav_array) = @each($nav_links) )
|
||||||
|
|
||||||
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
|
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
|
||||||
$l_timezone = explode('.', $board_config['board_timezone']);
|
$l_timezone = explode('.', $board_config['board_timezone']);
|
||||||
$l_timezone = ($l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
|
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
|
||||||
|
|
||||||
//
|
//
|
||||||
// The following assigns all _common_ variables that may be used at any point
|
// The following assigns all _common_ variables that may be used at any point
|
||||||
// in a template.
|
// in a template.
|
||||||
|
|
Loading…
Add table
Reference in a new issue