|
@@ 1081-1082 (lines=2) @@
|
| 1078 |
|
$context['my_likes'] = $context['user']['is_guest'] ? array() : prepareLikesContext($topic); |
| 1079 |
|
|
| 1080 |
|
// Go to the last message if the given time is beyond the time of the last message. |
| 1081 |
|
if (isset($context['start_from']) && $context['start_from'] >= $context['topicinfo']['num_replies']) |
| 1082 |
|
$context['start_from'] = $context['topicinfo']['num_replies']; |
| 1083 |
|
|
| 1084 |
|
// Since the anchor information is needed on the top of the page we load these variables beforehand. |
| 1085 |
|
$context['first_message'] = isset($messages[$firstIndex]) ? $messages[$firstIndex] : $messages[0]; |
|
@@ 1088-1089 (lines=2) @@
|
| 1085 |
|
$context['first_message'] = isset($messages[$firstIndex]) ? $messages[$firstIndex] : $messages[0]; |
| 1086 |
|
if (empty($options['view_newest_first'])) |
| 1087 |
|
$context['first_new_message'] = isset($context['start_from']) && $_REQUEST['start'] == $context['start_from']; |
| 1088 |
|
else |
| 1089 |
|
$context['first_new_message'] = isset($context['start_from']) && $_REQUEST['start'] == $context['topicinfo']['num_replies'] - $context['start_from']; |
| 1090 |
|
} |
| 1091 |
|
else |
| 1092 |
|
{ |