@@ -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 | } |
@@ -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 | /** |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $l_edited_by = $edit_reason = ''; |
| 268 | 268 | if (($row['post_edit_count'] && $this->config['display_last_edited']) || $row['post_edit_reason']) |
| 269 | 269 | { |
| 270 | - $display_username = $users_cache[$row['poster_id']]['username_full']; |
|
| 270 | + $display_username = $users_cache[$row['poster_id']]['username_full']; |
|
| 271 | 271 | $l_edited_by = $this->language->lang('EDITED_TIMES_TOTAL', (int) $row['post_edit_count'], $display_username, $this->user->format_date($row['post_edit_time'], false, true)); |
| 272 | 272 | $edit_reason = $row['post_edit_reason']; |
| 273 | 273 | } |
@@ -290,8 +290,8 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | if ($s_post_deleted && $row['post_delete_user']) |
| 292 | 292 | { |
| 293 | - $display_postername = $users_cache[$row['poster_id']]['username_full']; |
|
| 294 | - $display_username = $users_cache[$row['post_delete_user']]['username_full']; |
|
| 293 | + $display_postername = $users_cache[$row['poster_id']]['username_full']; |
|
| 294 | + $display_username = $users_cache[$row['post_delete_user']]['username_full']; |
|
| 295 | 295 | |
| 296 | 296 | $l_deleted_message = $this->get_delete_message($row, $display_postername, $display_username); |
| 297 | 297 | $l_deleted_by = $this->language->lang('DELETED_INFORMATION', $display_username, $this->user->format_date($row['post_delete_time'], false, true)); |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | $content = preg_replace('/((?:\?|&)sid=[a-z0-9]+)/', '', $content); |
| 126 | 126 | |
| 127 | 127 | // Remove Comments from inline attachments [ia] |
| 128 | - $content = preg_replace('#<dd>(.*?)</dd>#','',$content); |
|
| 128 | + $content = preg_replace('#<dd>(.*?)</dd>#', '', $content); |
|
| 129 | 129 | |
| 130 | 130 | // Replace some entities with their unicode counterpart |
| 131 | 131 | $entities = array( |
@@ -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 | |
@@ -76,8 +76,8 @@ |
||
| 76 | 76 | { |
| 77 | 77 | return array( |
| 78 | 78 | 'size' => 'large', |
| 79 | - 'maxlength' => '', // input characters |
|
| 80 | - 'max_chars' => 200, // display characters |
|
| 79 | + 'maxlength' => '', // input characters |
|
| 80 | + 'max_chars' => 200, // display characters |
|
| 81 | 81 | 'editor' => true, |
| 82 | 82 | ); |
| 83 | 83 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | |
| 204 | 204 | $content = $this->fields->build_content(array_change_key_case($post_data, CASE_UPPER)); |
| 205 | 205 | |
| 206 | - $text = isset($content['CUSTOM_DISPLAY']) ? $content['CUSTOM_DISPLAY'] : join('', $content['FIELDS']['all']); |
|
| 206 | + $text = isset($content['CUSTOM_DISPLAY']) ? $content['CUSTOM_DISPLAY'] : join('', $content['FIELDS']['all']); |
|
| 207 | 207 | } |
| 208 | 208 | return $text; |
| 209 | 209 | } |
@@ -418,8 +418,8 @@ discard block |
||
| 418 | 418 | } |
| 419 | 419 | else |
| 420 | 420 | { |
| 421 | - $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
| 422 | - $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
| 421 | + $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
| 422 | + $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | return $options; |
@@ -87,9 +87,9 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | if ($topic_data['total_comments']) |
| 89 | 89 | { |
| 90 | - $view = $this->request->variable('view', ''); |
|
| 91 | - $start = $this->request->variable('start', 0); |
|
| 92 | - $post_id = $this->request->variable('p', 0); |
|
| 90 | + $view = $this->request->variable('view', ''); |
|
| 91 | + $start = $this->request->variable('start', 0); |
|
| 92 | + $post_id = $this->request->variable('p', 0); |
|
| 93 | 93 | |
| 94 | 94 | $this->find_unread($view, $topic_data); |
| 95 | 95 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | protected function add_comment_anchor_to_pages() |
| 220 | 220 | { |
| 221 | - $data =& $this->template_context->get_data_ref()['pagination']; |
|
| 221 | + $data = & $this->template_context->get_data_ref()['pagination']; |
|
| 222 | 222 | $data = (array) $data; |
| 223 | 223 | |
| 224 | 224 | foreach ($data as &$row) |
@@ -329,11 +329,11 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | protected function set_sorting_options(&$sort_days, &$sort_key, &$sort_dir, &$u_sort_param) |
| 331 | 331 | { |
| 332 | - $default_sort_days = (!empty($this->user->data['user_post_show_days'])) ? $this->user->data['user_post_show_days'] : 0; |
|
| 332 | + $default_sort_days = (!empty($this->user->data['user_post_show_days'])) ? $this->user->data['user_post_show_days'] : 0; |
|
| 333 | 333 | $default_sort_key = (!empty($this->user->data['user_post_sortby_type'])) ? $this->user->data['user_post_sortby_type'] : 't'; |
| 334 | 334 | $default_sort_dir = (!empty($this->user->data['user_post_sortby_dir'])) ? $this->user->data['user_post_sortby_dir'] : 'a'; |
| 335 | 335 | |
| 336 | - $sort_days = $this->request->variable('st', $default_sort_days); |
|
| 336 | + $sort_days = $this->request->variable('st', $default_sort_days); |
|
| 337 | 337 | $sort_key = $this->request->variable('sk', $default_sort_key); |
| 338 | 338 | $sort_dir = $this->request->variable('sd', $default_sort_dir); |
| 339 | 339 | |