|
@@ 150-155 (lines=6) @@
|
| 147 |
|
$query_parameters['boards'] = $boards; |
| 148 |
|
|
| 149 |
|
// If this category has a significant number of posts in it... |
| 150 |
|
if ($total_cat_posts > 100 && $total_cat_posts > $modSettings['totalMessages'] / 15) |
| 151 |
|
{ |
| 152 |
|
$query_this_board .= ' |
| 153 |
|
AND m.id_msg >= {int:max_id_msg}'; |
| 154 |
|
$query_parameters['max_id_msg'] = max(0, $modSettings['maxMsgID'] - 400 - $_REQUEST['start'] * 7); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
$context['page_index'] = constructPageIndex($scripturl . '?action=recent;c=' . implode(',', $_REQUEST['c']), $_REQUEST['start'], min(100, $total_cat_posts), 10, false); |
| 158 |
|
} |
|
@@ 194-199 (lines=6) @@
|
| 191 |
|
$query_parameters['boards'] = $boards; |
| 192 |
|
|
| 193 |
|
// If these boards have a significant number of posts in them... |
| 194 |
|
if ($total_posts > 100 && $total_posts > $modSettings['totalMessages'] / 12) |
| 195 |
|
{ |
| 196 |
|
$query_this_board .= ' |
| 197 |
|
AND m.id_msg >= {int:max_id_msg}'; |
| 198 |
|
$query_parameters['max_id_msg'] = max(0, $modSettings['maxMsgID'] - 500 - $_REQUEST['start'] * 9); |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
$context['page_index'] = constructPageIndex($scripturl . '?action=recent;boards=' . implode(',', $_REQUEST['boards']), $_REQUEST['start'], min(100, $total_posts), 10, false); |
| 202 |
|
} |
|
@@ 228-233 (lines=6) @@
|
| 225 |
|
$query_parameters['board'] = $board; |
| 226 |
|
|
| 227 |
|
// If this board has a significant number of posts in it... |
| 228 |
|
if ($total_posts > 80 && $total_posts > $modSettings['totalMessages'] / 10) |
| 229 |
|
{ |
| 230 |
|
$query_this_board .= ' |
| 231 |
|
AND m.id_msg >= {int:max_id_msg}'; |
| 232 |
|
$query_parameters['max_id_msg'] = max(0, $modSettings['maxMsgID'] - 600 - $_REQUEST['start'] * 10); |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
$context['page_index'] = constructPageIndex($scripturl . '?action=recent;board=' . $board . '.%1$d', $_REQUEST['start'], min(100, $total_posts), 10, true); |
| 236 |
|
} |