@@ -68,8 +68,7 @@ |
||
68 | 68 | if ( |
69 | 69 | ($type = $this->content_types->get_forum_type($event['post_info']['forum_id'])) !== false |
70 | 70 | && $event['post_info']['post_id'] === $event['post_info']['topic_first_post_id'] |
71 | - ) |
|
72 | - { |
|
71 | + ) { |
|
73 | 72 | $entity = $this->content_types->get_type($type); |
74 | 73 | |
75 | 74 | $this->fields->prepare_to_show($entity, array($event['post_info']['topic_id']), $entity->get_summary_fields(), $entity->get_summary_tpl(), 'summary'); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $this->fields->prepare_to_show($entity, array($post_data['topic_id']), $entity->$fields_accessor(), $entity->$template_accessor(), $view); |
209 | 209 | $content = $this->fields->build_content(array_change_key_case($post_data, CASE_UPPER)); |
210 | 210 | |
211 | - $text = isset($content['CUSTOM_DISPLAY']) ? $content['CUSTOM_DISPLAY'] : join('', $content['FIELDS']['all']); |
|
211 | + $text = isset($content['CUSTOM_DISPLAY']) ? $content['CUSTOM_DISPLAY'] : join('', $content['FIELDS']['all']); |
|
212 | 212 | } |
213 | 213 | return $text; |
214 | 214 | } |
@@ -403,8 +403,8 @@ discard block |
||
403 | 403 | } |
404 | 404 | else |
405 | 405 | { |
406 | - $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
407 | - $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
406 | + $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
407 | + $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | return $options; |
@@ -139,7 +139,7 @@ |
||
139 | 139 | |
140 | 140 | foreach ($posts_data as $topic_id => $posts) |
141 | 141 | { |
142 | - $post_data = array_shift($posts); |
|
142 | + $post_data = array_shift($posts); |
|
143 | 143 | $topic_data = $topics_data[$topic_id]; |
144 | 144 | $topic_data = $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info, $topic_data_overwrite, $cp_mode); |
145 | 145 |