diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2009-11-14 19:12:12 +0000 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2009-11-14 19:12:12 +0000 |
commit | 978f707fd12698875e20b945f2bb30c82c6888c5 (patch) | |
tree | 8974f53912792996a760defcf57e7eb81dd74100 | |
parent | a0d7f6ebc4329c85b756eba98a713bc5f09c64a1 (diff) | |
download | forums-978f707fd12698875e20b945f2bb30c82c6888c5.tar forums-978f707fd12698875e20b945f2bb30c82c6888c5.tar.gz forums-978f707fd12698875e20b945f2bb30c82c6888c5.tar.bz2 forums-978f707fd12698875e20b945f2bb30c82c6888c5.tar.xz forums-978f707fd12698875e20b945f2bb30c82c6888c5.zip |
[Fix] Force full date for board online record date.
Authorised by: bantu
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10266 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/functions.php | 8 |
2 files changed, 3 insertions, 6 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index babcd171c6..1fe45c97a1 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -90,6 +90,7 @@ <ul> <li>[Fix] Allow ban reason and length to be selected and copied in ACP and subsilver2 MCP. (Bug #51095)</li> + <li>[Fix] Force full date for board online record date.</li> </ul> <a name="v305"></a><h3>1.ii. Changes since 3.0.5</h3> diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e787932441..812b672c5c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3959,7 +3959,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 $s_last_visit = ($user->data['user_id'] != ANONYMOUS) ? $user->format_date($user->data['session_last_visit']) : ''; // Get users online list ... if required - $l_online_users = $online_userlist = $l_online_record = ''; + $l_online_users = $online_userlist = $l_online_record = $l_online_time = ''; if ($config['load_online'] && $config['load_online_time'] && $display_online_list) { @@ -3982,15 +3982,11 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 set_config('record_online_date', time(), true); } - $l_online_record = sprintf($user->lang['RECORD_ONLINE_USERS'], $config['record_online_users'], $user->format_date($config['record_online_date'])); + $l_online_record = sprintf($user->lang['RECORD_ONLINE_USERS'], $config['record_online_users'], $user->format_date($config['record_online_date'], false, true)); $l_online_time = ($config['load_online_time'] == 1) ? 'VIEW_ONLINE_TIME' : 'VIEW_ONLINE_TIMES'; $l_online_time = sprintf($user->lang[$l_online_time], $config['load_online_time']); } - else - { - $l_online_time = ''; - } $l_privmsgs_text = $l_privmsgs_text_unread = ''; $s_privmsg_new = false; |