@@ -138,7 +138,7 @@ |
||
| 138 | 138 | |
| 139 | 139 | foreach ($posts_data as $topic_id => $posts) |
| 140 | 140 | { |
| 141 | - $post_data = array_shift($posts); |
|
| 141 | + $post_data = array_shift($posts); |
|
| 142 | 142 | $topic_data = $topics_data[$topic_id]; |
| 143 | 143 | $topic_data = array_merge( |
| 144 | 144 | $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info), |
@@ -87,9 +87,9 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | if ($topic_data['total_comments']) |
| 89 | 89 | { |
| 90 | - $view = $this->request->variable('view', ''); |
|
| 91 | - $start = $this->request->variable('start', 0); |
|
| 92 | - $post_id = $this->request->variable('p', 0); |
|
| 90 | + $view = $this->request->variable('view', ''); |
|
| 91 | + $start = $this->request->variable('start', 0); |
|
| 92 | + $post_id = $this->request->variable('p', 0); |
|
| 93 | 93 | |
| 94 | 94 | $this->find_unread($view, $topic_data); |
| 95 | 95 | |
@@ -310,11 +310,11 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | protected function set_sorting_options(&$sort_days, &$sort_key, &$sort_dir, &$u_sort_param) |
| 312 | 312 | { |
| 313 | - $default_sort_days = (!empty($this->user->data['user_post_show_days'])) ? $this->user->data['user_post_show_days'] : 0; |
|
| 313 | + $default_sort_days = (!empty($this->user->data['user_post_show_days'])) ? $this->user->data['user_post_show_days'] : 0; |
|
| 314 | 314 | $default_sort_key = (!empty($this->user->data['user_post_sortby_type'])) ? $this->user->data['user_post_sortby_type'] : 't'; |
| 315 | 315 | $default_sort_dir = (!empty($this->user->data['user_post_sortby_dir'])) ? $this->user->data['user_post_sortby_dir'] : 'a'; |
| 316 | 316 | |
| 317 | - $sort_days = $this->request->variable('st', $default_sort_days); |
|
| 317 | + $sort_days = $this->request->variable('st', $default_sort_days); |
|
| 318 | 318 | $sort_key = $this->request->variable('sk', $default_sort_key); |
| 319 | 319 | $sort_dir = $this->request->variable('sd', $default_sort_dir); |
| 320 | 320 | |