@@ -163,13 +163,13 @@ discard block |
||
163 | 163 | $topic_tracking_info = $this->forum->get_topic_tracking_info($forum_id); |
164 | 164 | $block_fields = $this->get_block_fields($entity->get_field_types()); |
165 | 165 | |
166 | - $this->fields->prepare_to_show($entity, array_keys($topics_data), $block_fields, $this->settings['block_tpl'], 'block', $block_id . '_block'); |
|
166 | + $this->fields->prepare_to_show($entity, array_keys($topics_data), $block_fields, $this->settings['block_tpl'], 'block', $block_id.'_block'); |
|
167 | 167 | |
168 | 168 | $update_count = array(); |
169 | 169 | foreach ($posts_data as $topic_id => $posts) |
170 | 170 | { |
171 | - $post_data = array_shift($posts); |
|
172 | - $topic_data = $topics_data[$topic_id]; |
|
171 | + $post_data = array_shift($posts); |
|
172 | + $topic_data = $topics_data[$topic_id]; |
|
173 | 173 | $this->ptemplate->assign_block_vars('topicrow', $this->fields->show($type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info)); |
174 | 174 | } |
175 | 175 | unset($topics_data, $posts_data, $users_cache, $attachments, $topic_tracking_info); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | POST_STICKY => 'CONTENT_STICKY_POSTS', |
197 | 197 | ); |
198 | 198 | |
199 | - return (isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_types']] : $this->language->lang('CONTENT_' . $this->sort_options[$this->settings['sort_key']], $content_langname); |
|
199 | + return (isset($topic_types[$this->settings['topic_type']])) ? $topic_types[$this->settings['topic_types']] : $this->language->lang('CONTENT_'.$this->sort_options[$this->settings['sort_key']], $content_langname); |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | foreach ($content_types as $value => $title) |
264 | 264 | { |
265 | 265 | $selected = ($type == $value) ? ' selected="selected"' : ''; |
266 | - $html .= '<option value="' . $value . '"' . $selected . ' data-toggle-setting="#fields-col-' . $value . '">' . $title . '</option>'; |
|
266 | + $html .= '<option value="'.$value.'"'.$selected.' data-toggle-setting="#fields-col-'.$value.'">'.$title.'</option>'; |
|
267 | 267 | } |
268 | 268 | |
269 | 269 | return $html; |