mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Slight mod to jump to last post calc
git-svn-id: file:///svn/phpbb/trunk@367 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
943901d916
commit
e19e832e1c
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ if($total_categories)
|
|||
{
|
||||
$last_post_time = create_date($board_config['default_dateformat'], $forum_rows[$j]['post_time'], $board_config['default_timezone']);
|
||||
|
||||
$topic_last_post_start = (int)(($forum_rows[$j]['topic_replies']+1) / $board_config['posts_per_page']) * $board_config['posts_per_page'];
|
||||
$topic_last_post_start = floor(($forum_rows[$j]['topic_replies']) / $board_config['posts_per_page']) * $board_config['posts_per_page'];
|
||||
$last_post_get = ($topic_last_post_start) ? "&start=".$topic_last_post_start : "";
|
||||
$last_post_get .= "#".$forum_rows[$j]['topic_last_post_id'];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue