|
@@ 1211-1212 (lines=2) @@
|
| 1208 |
|
$context['my_likes'] = $context['user']['is_guest'] ? array() : prepareLikesContext($topic); |
| 1209 |
|
|
| 1210 |
|
// Go to the last message if the given time is beyond the time of the last message. |
| 1211 |
|
if (isset($context['start_from']) && $context['start_from'] >= $context['topicinfo']['num_replies']) |
| 1212 |
|
$context['start_from'] = $context['topicinfo']['num_replies']; |
| 1213 |
|
|
| 1214 |
|
// Since the anchor information is needed on the top of the page we load these variables beforehand. |
| 1215 |
|
$context['first_message'] = isset($messages[$firstIndex]) ? $messages[$firstIndex] : $messages[0]; |
|
@@ 1218-1219 (lines=2) @@
|
| 1215 |
|
$context['first_message'] = isset($messages[$firstIndex]) ? $messages[$firstIndex] : $messages[0]; |
| 1216 |
|
if (empty($options['view_newest_first'])) |
| 1217 |
|
$context['first_new_message'] = isset($context['start_from']) && $_REQUEST['start'] == $context['start_from']; |
| 1218 |
|
else |
| 1219 |
|
$context['first_new_message'] = isset($context['start_from']) && $_REQUEST['start'] == $context['topicinfo']['num_replies'] - $context['start_from']; |
| 1220 |
|
} |
| 1221 |
|
else |
| 1222 |
|
{ |