@@ -531,7 +531,7 @@ |
||
| 531 | 531 | /** |
| 532 | 532 | * Get the topics post count or the forums post/topic count based on permissions |
| 533 | 533 | * |
| 534 | - * @param $mode string One of topic_posts, forum_posts or forum_topics |
|
| 534 | + * @param string $mode string One of topic_posts, forum_posts or forum_topics |
|
| 535 | 535 | * @param $data array Array with the topic/forum data to calculate from |
| 536 | 536 | * @param $forum_id int The forum id is used for permission checks |
| 537 | 537 | * @return int Number of posts/topics the user can see in the topic/forum |
@@ -225,8 +225,7 @@ discard block |
||
| 225 | 225 | if (!empty($this->topic_title)) |
| 226 | 226 | { |
| 227 | 227 | $event['generate_page_link_override'] = append_sid($this->generate_topic_link($this->forum_id, $this->forum_title, $this->topic_id, $this->topic_title, $start)); |
| 228 | - } |
|
| 229 | - else if (!empty($this->forum_title)) |
|
| 228 | + } else if (!empty($this->forum_title)) |
|
| 230 | 229 | { |
| 231 | 230 | $event['generate_page_link_override'] = append_sid($this->generate_forum_link($this->forum_id, $this->forum_title, $start)); |
| 232 | 231 | } |
@@ -378,8 +377,7 @@ discard block |
||
| 378 | 377 | if (isset($row['topic_id'])) |
| 379 | 378 | { |
| 380 | 379 | $url_data[$id]['url'] = $this->generate_topic_link($row['forum_id'], $row['forum_name'], $row['topic_id'], $row['topic_title'], $data['start'], true); |
| 381 | - } |
|
| 382 | - else if (isset($row['forum_id'])) |
|
| 380 | + } else if (isset($row['forum_id'])) |
|
| 383 | 381 | { |
| 384 | 382 | $url_data[$id]['url'] = $this->generate_forum_link($row['forum_id'], $row['forum_name'], $data['start'], true); |
| 385 | 383 | } |
@@ -498,8 +496,7 @@ discard block |
||
| 498 | 496 | { |
| 499 | 497 | $last_post_link = $url . '-s' . $j . '.html'; |
| 500 | 498 | } |
| 501 | - } |
|
| 502 | - else |
|
| 499 | + } else |
|
| 503 | 500 | { |
| 504 | 501 | $last_post_link = $url . '.html'; |
| 505 | 502 | } |