@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->set_comments_type($entity->get_comments()); |
107 | 107 | |
108 | 108 | $this->board_url = generate_board_url(true); |
109 | - $this->tpl_name = ($custom_tpl) ? ($tpl_name ?: $this->content_type . '_' . $this->view_mode) : ''; |
|
109 | + $this->tpl_name = ($custom_tpl) ? ($tpl_name ?: $this->content_type . '_' . $this->view_mode) : ''; |
|
110 | 110 | $this->db_fields = $db_fields; |
111 | 111 | |
112 | 112 | return $this; |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $field_data['field_value'] = &$field_values[$field_name]; |
260 | 260 | $field_data['field_value'] = $this->form_fields[$field_type]->get_field_value($field_data); |
261 | 261 | |
262 | - $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode, $this->view_mode); |
|
262 | + $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode, $this->view_mode); |
|
263 | 263 | $display_data['raw'][$field_name] = $field_data['field_value']; |
264 | 264 | |
265 | 265 | // this essentially hides other fields if the field returns an array |