diff --git a/checkin_notes b/checkin_notes index a4f379ff68..bc118c55bb 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6240,3 +6240,10 @@ David 17 Oct 2012 filesys.cpp,h samples/atiopencl/ atiopencl.cpp + +David 17 Oct 2012 + - web: if showing a thread in oldest-first order, + default to showing the last page of posts. + + html/inc/ + forum.inc diff --git a/html/inc/forum.inc b/html/inc/forum.inc index ea60fa0178..b8f957ae99 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -343,6 +343,14 @@ function show_posts( } } + if ($sort_style == CREATE_TIME_OLD) { + $nposts = sizeof($posts); + $page = (int)($nposts/$num_to_show); + $default_start = $page*$num_to_show; + } else { + $default_start = 0; + } + // jump to a specific post if needed // $jump_to_post = null; @@ -380,10 +388,10 @@ function show_posts( if ($jump_to_post) { $start = $ibest - ($ibest % $num_to_show); } else { - $start = 0; + $start = $default_start; } } else { - $start = 0; + $start = $default_start; } }