@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | else |
| 75 | 75 | { |
| 76 | - $message = $this->language->lang('INVALID_REQUEST', $action); |
|
| 76 | + $message = $this->language->lang('INVALID_REQUEST', $action); |
|
| 77 | 77 | trigger_error($message . '<br /><br />' . $this->language->lang('RETURN_PAGE', '<a href="' . $u_action . '">', '</a>')); |
| 78 | 78 | } |
| 79 | 79 | } |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | */ |
| 207 | 207 | protected function init_ucp_mode(array $content_types, array &$sql_where_array) |
| 208 | 208 | { |
| 209 | - $sql_where_array[] = 't.topic_poster = ' . (int) $this->user->data['user_id']; |
|
| 209 | + $sql_where_array[] = 't.topic_poster = ' . (int) $this->user->data['user_id']; |
|
| 210 | 210 | |
| 211 | 211 | // list all content types that the user can post in |
| 212 | 212 | $postable_forums = array_intersect_key($this->content_forums, $this->auth->acl_getf('f_post', true)); |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | */ |
| 125 | 125 | protected function allow_topic_delete(array $topic_data) |
| 126 | 126 | { |
| 127 | - return ($this->auth->acl_get('m_delete', $topic_data['forum_id'])) || (($topic_data['topic_visibility'] != ITEM_DELETED) && $this->auth->acl_get('m_softdelete', $topic_data['forum_id'])); |
|
| 127 | + return ($this->auth->acl_get('m_delete', $topic_data['forum_id'])) || (($topic_data['topic_visibility'] != ITEM_DELETED) && $this->auth->acl_get('m_softdelete', $topic_data['forum_id'])); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -309,10 +309,10 @@ |
||
| 309 | 309 | $detail_fields = $this->get_template_fields($detail_fields, $this->detail_tpl, $fields); |
| 310 | 310 | |
| 311 | 311 | $this->summary_fields = array_intersect_key($field_types, array_flip($summary_fields)); |
| 312 | - $this->detail_fields = array_intersect_key($field_types, array_flip($detail_fields)); |
|
| 312 | + $this->detail_fields = array_intersect_key($field_types, array_flip($detail_fields)); |
|
| 313 | 313 | |
| 314 | 314 | $this->content_fields = $content_fields; |
| 315 | - $this->field_types = $field_types; |
|
| 315 | + $this->field_types = $field_types; |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | /** |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function get_field_value(array $data) |
| 57 | 57 | { |
| 58 | 58 | $default = is_array($data['field_value']) ? $data['field_value'] : explode("\n", $data['field_value']); |
| 59 | - $value = $this->request->variable($data['field_name'], array(0 => '')); |
|
| 59 | + $value = $this->request->variable($data['field_name'], array(0 => '')); |
|
| 60 | 60 | return $value ?: $default; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | foreach ($choices as $value => $option) |
| 98 | 98 | { |
| 99 | 99 | $options[] = array( |
| 100 | - 'id' => 'smc-'. $name . '-' . $count, |
|
| 100 | + 'id' => 'smc-' . $name . '-' . $count, |
|
| 101 | 101 | 'label' => $this->language->lang($option), |
| 102 | 102 | 'selected' => (int) (in_array($value, $selected)), |
| 103 | 103 | 'value' => $value, |
@@ -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 = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']); |
|
| 211 | + $text = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']); |
|
| 212 | 212 | } |
| 213 | 213 | return $text; |
| 214 | 214 | } |
@@ -404,8 +404,8 @@ discard block |
||
| 404 | 404 | } |
| 405 | 405 | else |
| 406 | 406 | { |
| 407 | - $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
| 408 | - $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
| 407 | + $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
| 408 | + $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | return $options; |
@@ -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 = array_merge( |
| 144 | 144 | $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info), |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | $this->board_url = generate_board_url(true); |
| 99 | 99 | $this->display_mode = $view_mode; |
| 100 | - $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
| 100 | + $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
| 101 | 101 | $this->view_mode = (in_array($view_mode, array('summary', 'detail'))) ? $view_mode : 'summary'; |
| 102 | 102 | $this->db_fields = $db_fields; |
| 103 | 103 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $field_data['field_props'] = array_replace_recursive($this->form_fields[$field_type]->get_default_props(), $field_data['field_props']); |
| 208 | 208 | $field_data['field_value'] = &$field_values[$field_name]; |
| 209 | 209 | |
| 210 | - $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
| 210 | + $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
| 211 | 211 | |
| 212 | 212 | // this essentially hides other fields if the field returns an array |
| 213 | 213 | if (is_array($field_contents)) |