@@ -65,14 +65,14 @@ |
||
65 | 65 | $entity->set_allow_comments(false); |
66 | 66 | |
67 | 67 | $overwrite = array( |
68 | - 'TOPIC_URL' => $u_action . '&do=view&type=' . $type . '&t=' . $topic_id, |
|
68 | + 'TOPIC_URL' => $u_action.'&do=view&type='.$type.'&t='.$topic_id, |
|
69 | 69 | 'U_INFO' => '', |
70 | 70 | ); |
71 | 71 | |
72 | 72 | if ($mode === 'mcp') |
73 | 73 | { |
74 | 74 | $redirect_url = urlencode(str_replace('&', '&', $u_action)); |
75 | - $overwrite['U_DELETE'] = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&action=delete_topic&t=' . $topic_id . '&redirect=' . $redirect_url); |
|
75 | + $overwrite['U_DELETE'] = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&action=delete_topic&t='.$topic_id.'&redirect='.$redirect_url); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | $update_count = array(); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | { |
89 | 89 | $copy_params = $this->params; |
90 | 90 | unset($copy_params['type']); |
91 | - $view_url = $u_action . http_build_query($copy_params); |
|
91 | + $view_url = $u_action.http_build_query($copy_params); |
|
92 | 92 | |
93 | 93 | $this->template->assign_block_vars('content', array( |
94 | 94 | 'TITLE' => $this->language->lang('TOPIC_ALL'), |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | 'TITLE' => $entity->get_content_langname(), |
105 | 105 | 'COLOUR' => $entity->get_content_colour(), |
106 | 106 | 'S_SELECTED' => ($type === $content_name) ? true : false, |
107 | - 'U_VIEW' => $view_url . '&type=' . $content_name |
|
107 | + 'U_VIEW' => $view_url.'&type='.$content_name |
|
108 | 108 | )); |
109 | 109 | } |
110 | 110 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | { |
135 | 135 | $copy_params = $this->params; |
136 | 136 | unset($copy_params['status']); |
137 | - $view_url = $u_action . http_build_query($copy_params); |
|
137 | + $view_url = $u_action.http_build_query($copy_params); |
|
138 | 138 | |
139 | 139 | $this->template->assign_block_vars('status', array( |
140 | 140 | 'TITLE' => $this->language->lang('TOPIC_ALL'), |
@@ -146,9 +146,9 @@ discard block |
||
146 | 146 | foreach ($topic_status_ary as $status) |
147 | 147 | { |
148 | 148 | $this->template->assign_block_vars('status', array( |
149 | - 'TITLE' => $this->language->lang('TOPIC_' . strtoupper($status)), |
|
149 | + 'TITLE' => $this->language->lang('TOPIC_'.strtoupper($status)), |
|
150 | 150 | 'S_SELECTED' => ($status === $topic_status) ? true : false, |
151 | - 'U_VIEW' => $view_url . '&status=' . $status |
|
151 | + 'U_VIEW' => $view_url.'&status='.$status |
|
152 | 152 | )); |
153 | 153 | } |
154 | 154 | } |
@@ -163,18 +163,18 @@ discard block |
||
163 | 163 | switch ($topic_status) |
164 | 164 | { |
165 | 165 | case 'scheduled': |
166 | - $sql_where_array[] = 't.topic_time > ' . time(); |
|
166 | + $sql_where_array[] = 't.topic_time > '.time(); |
|
167 | 167 | break; |
168 | 168 | case 'unapproved': |
169 | 169 | case 'published': |
170 | 170 | case 'deleted': |
171 | - $sql_where_array[] = 't.topic_visibility = ' . array_search($topic_status, $this->filter_topic_status_ary); |
|
171 | + $sql_where_array[] = 't.topic_visibility = '.array_search($topic_status, $this->filter_topic_status_ary); |
|
172 | 172 | break; |
173 | 173 | case 'recommended': |
174 | 174 | case 'featured': |
175 | 175 | case 'must_read': |
176 | - $sql_where_array[] = 't.topic_type = ' . array_search($topic_status, $this->filter_topic_types_ary); |
|
177 | - $sql_where_array[] = 't.topic_visibility = ' . ITEM_APPROVED; |
|
176 | + $sql_where_array[] = 't.topic_type = '.array_search($topic_status, $this->filter_topic_types_ary); |
|
177 | + $sql_where_array[] = 't.topic_visibility = '.ITEM_APPROVED; |
|
178 | 178 | break; |
179 | 179 | } |
180 | 180 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | if ($keyword = $this->request->variable('keyword', '', true)) |
189 | 189 | { |
190 | 190 | $this->params['keyword'] = $keyword; |
191 | - $sql_where_array[] = 't.topic_title ' . $this->db->sql_like_expression($this->db->get_any_char() . $keyword . $this->db->get_any_char()); |
|
191 | + $sql_where_array[] = 't.topic_title '.$this->db->sql_like_expression($this->db->get_any_char().$keyword.$this->db->get_any_char()); |
|
192 | 192 | } |
193 | 193 | } |
194 | 194 | } |