@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | extract($this->phpbb_dispatcher->trigger_event('blitze.content.fields.set_values', compact($vars))); |
97 | 97 | |
98 | 98 | $this->board_url = generate_board_url(true); |
99 | - $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
99 | + $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
100 | 100 | $this->db_fields = $db_fields; |
101 | 101 | |
102 | 102 | $this->content_type = $entity->get_content_name(); |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | $field_data['field_props'] = array_replace_recursive($this->form_fields[$field_type]->get_default_props(), $field_data['field_props']); |
221 | 221 | $field_data['field_value'] = &$field_values[$field_name]; |
222 | 222 | |
223 | - $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
223 | + $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
224 | 224 | |
225 | 225 | // this essentially hides other fields if the field returns an array |
226 | 226 | if (is_array($field_contents)) |
@@ -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 = $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info, $topic_data_overwrite); |
144 | 144 |