@@ -93,16 +93,16 @@ discard block |
||
93 | 93 | } |
94 | 94 | $this->forum_id = (int) $this->topic_row['forum_id']; |
95 | 95 | |
96 | - $this->view_topic_url_params = 'f=' . $this->forum_id . '&t=' . $this->topic_id; |
|
97 | - $this->view_topic_url = append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", $this->view_topic_url_params); |
|
98 | - $this->newest_post_url = append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", $this->view_topic_url_params . '&view=unread') . '#unread'; |
|
99 | - $this->last_post_url = append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", $this->view_topic_url_params . '&p=' . $topic_row['topic_last_post_id']) . '#p' . $topic_row['topic_last_post_id']; |
|
96 | + $this->view_topic_url_params = 'f='.$this->forum_id.'&t='.$this->topic_id; |
|
97 | + $this->view_topic_url = append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", $this->view_topic_url_params); |
|
98 | + $this->newest_post_url = append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", $this->view_topic_url_params.'&view=unread').'#unread'; |
|
99 | + $this->last_post_url = append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", $this->view_topic_url_params.'&p='.$topic_row['topic_last_post_id']).'#p'.$topic_row['topic_last_post_id']; |
|
100 | 100 | |
101 | 101 | $this->replies = $phpbb_content_visibility->get_count('topic_posts', $topic_row, $this->forum_id) - 1; |
102 | 102 | |
103 | 103 | if (!function_exists('topic_status')) |
104 | 104 | { |
105 | - include ($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext); |
|
105 | + include ($this->phpbb_root_path.'includes/functions_display.'.$this->php_ext); |
|
106 | 106 | } |
107 | 107 | // Get folder img, topic status/type related information |
108 | 108 | topic_status($topic_row, $this->replies, $this->unread_topic(), $this->folder_img, $this->folder_alt, $this->topic_type); |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | public function mcp_report() |
268 | 268 | { |
269 | - return append_sid("{$this->phpbb_root_path}mcp.{$this->php_ext}", 'i=reports&mode=reports&f=' . $this->forum_id . '&t=' . $this->topic_id, true, $this->user->session_id); |
|
269 | + return append_sid("{$this->phpbb_root_path}mcp.{$this->php_ext}", 'i=reports&mode=reports&f='.$this->forum_id.'&t='.$this->topic_id, true, $this->user->session_id); |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | public function forum_name() |
@@ -323,6 +323,6 @@ discard block |
||
323 | 323 | { |
324 | 324 | $s_type_switch = 0; |
325 | 325 | $s_type_switch_test = ($this->topic_row['topic_type'] == POST_ANNOUNCE || $this->topic_row['topic_type'] == POST_GLOBAL) ? 1 : 0; |
326 | - return ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test; |
|
326 | + return ($s_type_switch == $s_type_switch_test) ? - 1 : $s_type_switch_test; |
|
327 | 327 | } |
328 | 328 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function show() |
99 | 99 | { |
100 | - $this->tagcloud_manager->assign_tagcloud_to_template(-1); |
|
100 | + $this->tagcloud_manager->assign_tagcloud_to_template(- 1); |
|
101 | 101 | return $this->helper->render('tags.html', $this->user->lang('RH_TOPICTAGS')); |
102 | 102 | } |
103 | 103 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $tags = $all_tags['valid']; |
130 | 130 | $tags_string = join(', ', $tags); |
131 | 131 | $this->template->assign_var('RH_TOPICTAGS_SEARCH_HEADER', |
132 | - $this->user->lang('RH_TOPICTAGS_SEARCH_HEADER_' . $mode, $tags_string) |
|
132 | + $this->user->lang('RH_TOPICTAGS_SEARCH_HEADER_'.$mode, $tags_string) |
|
133 | 133 | ); |
134 | 134 | if (empty($tags)) |
135 | 135 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | return $this->helper->render('show_tag.html', $this->user->lang('RH_TOPICTAGS_TAG_SEARCH')); |
139 | 139 | } |
140 | 140 | |
141 | - $topics_count = $this->tags_manager->count_topics_by_tags($tags, $mode, $casesensitive); |
|
141 | + $topics_count = $this->tags_manager->count_topics_by_tags($tags, $mode, $casesensitive); |
|
142 | 142 | if ($topics_count <= 0) |
143 | 143 | { |
144 | 144 | $this->template->assign_var('NO_TOPICS_FOR_TAG', $this->user->lang('RH_TOPICTAGS_NO_TOPICS_FOR_TAG_'.$mode, |
@@ -146,14 +146,14 @@ discard block |
||
146 | 146 | } |
147 | 147 | else |
148 | 148 | { |
149 | - $pagination = $this->pagination; |
|
149 | + $pagination = $this->pagination; |
|
150 | 150 | |
151 | 151 | $start = $this->request->variable('start', 0); |
152 | 152 | $limit = $this->config['topics_per_page']; |
153 | 153 | |
154 | 154 | $start = $pagination->validate_start($start, $limit, $topics_count); |
155 | 155 | |
156 | - $topics = $this->tags_manager->get_topics_by_tags($tags, $start, $limit, $mode, $casesensitive); |
|
156 | + $topics = $this->tags_manager->get_topics_by_tags($tags, $start, $limit, $mode, $casesensitive); |
|
157 | 157 | |
158 | 158 | $base_url = $this->helper->route('robertheim_topictags_show_tag_controller', array( |
159 | 159 | 'tags' => urlencode($tags_string), |
@@ -288,6 +288,6 @@ discard block |
||
288 | 288 | $json_response->send($tags); |
289 | 289 | } |
290 | 290 | // fake a 404 |
291 | - return $this->helper->error($this->user->lang('RH_TOPICTAGS_TAG_SUGGEST_TAG_ROUTE_ERROR', $this->helper->get_current_url()) , 404); |
|
291 | + return $this->helper->error($this->user->lang('RH_TOPICTAGS_TAG_SUGGEST_TAG_ROUTE_ERROR', $this->helper->get_current_url()), 404); |
|
292 | 292 | } |
293 | 293 | } |