@@ -229,9 +229,9 @@ discard block  | 
                                                    ||
| 229 | 229 | }  | 
                                                        
| 230 | 230 | else  | 
                                                        
| 231 | 231 |  		{ | 
                                                        
| 232 | - if($this->phpbb31)  | 
                                                        |
| 232 | + if ($this->phpbb31)  | 
                                                        |
| 233 | 233 |  			{ | 
                                                        
| 234 | -				$title = ' ' . $this->topicsolved->image('list', 'TOPIC_SOLVED', $solved_url); | 
                                                        |
| 234 | +				$title = ' '.$this->topicsolved->image('list', 'TOPIC_SOLVED', $solved_url); | 
                                                        |
| 235 | 235 | }  | 
                                                        
| 236 | 236 | else  | 
                                                        
| 237 | 237 |  			{ | 
                                                        
@@ -266,7 +266,7 @@ discard block  | 
                                                    ||
| 266 | 266 | }  | 
                                                        
| 267 | 267 | else  | 
                                                        
| 268 | 268 |  			{ | 
                                                        
| 269 | - if($this->phpbb31)  | 
                                                        |
| 269 | + if ($this->phpbb31)  | 
                                                        |
| 270 | 270 |  				{ | 
                                                        
| 271 | 271 |  					$this->template->assign_var('TOPIC_SOLVED_IMAGE', | 
                                                        
| 272 | 272 |  						$this->topicsolved->image('head', 'TOPIC_SOLVED') | 
                                                        
@@ -349,9 +349,9 @@ discard block  | 
                                                    ||
| 349 | 349 | }  | 
                                                        
| 350 | 350 | else  | 
                                                        
| 351 | 351 |  			{ | 
                                                        
| 352 | - if($this->phpbb31)  | 
                                                        |
| 352 | + if ($this->phpbb31)  | 
                                                        |
| 353 | 353 |  				{ | 
                                                        
| 354 | - $post_row['POST_SUBJECT'] .= '  ' .  | 
                                                        |
| 354 | + $post_row['POST_SUBJECT'] .= '  '.  | 
                                                        |
| 355 | 355 |  						$this->topicsolved->image('post', 'TOPIC_SOLVED'); | 
                                                        
| 356 | 356 | }  | 
                                                        
| 357 | 357 | else  | 
                                                        
@@ -128,8 +128,8 @@ discard block  | 
                                                    ||
| 128 | 128 |  	{ | 
                                                        
| 129 | 129 | $select_sql_array = array(  | 
                                                        
| 130 | 130 | 'SELECT' =>  | 
                                                        
| 131 | - 't.topic_id, t.topic_poster, t.topic_status, t.topic_type, t.topic_solved, ' .  | 
                                                        |
| 132 | - 'f.forum_id, f.forum_allow_solve, f.forum_allow_unsolve, f.forum_lock_solved, ' .  | 
                                                        |
| 131 | + 't.topic_id, t.topic_poster, t.topic_status, t.topic_type, t.topic_solved, '.  | 
                                                        |
| 132 | + 'f.forum_id, f.forum_allow_solve, f.forum_allow_unsolve, f.forum_lock_solved, '.  | 
                                                        |
| 133 | 133 | 'p.post_id',  | 
                                                        
| 134 | 134 | 'FROM' => array(  | 
                                                        
| 135 | 135 | FORUMS_TABLE => 'f',  | 
                                                        
@@ -137,7 +137,7 @@ discard block  | 
                                                    ||
| 137 | 137 | TOPICS_TABLE => 't',  | 
                                                        
| 138 | 138 | ),  | 
                                                        
| 139 | 139 | 'WHERE' =>  | 
                                                        
| 140 | - 'p.post_id = ' . (int) $post_id .  | 
                                                        |
| 140 | + 'p.post_id = '.(int) $post_id.  | 
                                                        |
| 141 | 141 | ' AND t.topic_id = p.topic_id AND f.forum_id = t.forum_id',  | 
                                                        
| 142 | 142 | );  | 
                                                        
| 143 | 143 |  		$select_sql = $this->db->sql_build_query('SELECT', $select_sql_array); | 
                                                        
@@ -160,8 +160,8 @@ discard block  | 
                                                    ||
| 160 | 160 |  	{ | 
                                                        
| 161 | 161 |  		$update_sql = $this->db->sql_build_array('UPDATE', $data); | 
                                                        
| 162 | 162 |  		$result = $this->db->sql_query(' | 
                                                        
| 163 | - UPDATE ' . TOPICS_TABLE . '  | 
                                                        |
| 164 | - SET ' . $update_sql . '  | 
                                                        |
| 163 | + UPDATE ' . TOPICS_TABLE.'  | 
                                                        |
| 164 | + SET ' . $update_sql.'  | 
                                                        |
| 165 | 165 | WHERE topic_id = ' . (int) $topic_id  | 
                                                        
| 166 | 166 | );  | 
                                                        
| 167 | 167 | |
@@ -275,12 +275,12 @@ discard block  | 
                                                    ||
| 275 | 275 | public function image($type, $alt = '', $url = '')  | 
                                                        
| 276 | 276 |  	{ | 
                                                        
| 277 | 277 | $title = '';  | 
                                                        
| 278 | -		$markup = $this->user->img('icon_solved_' . $type, $alt); | 
                                                        |
| 278 | +		$markup = $this->user->img('icon_solved_'.$type, $alt); | 
                                                        |
| 279 | 279 | |
| 280 | 280 | if (!empty($alt))  | 
                                                        
| 281 | 281 |  		{ | 
                                                        
| 282 | 282 | $alt = $this->user->lang($alt);  | 
                                                        
| 283 | - $title = ' title="' . htmlspecialchars($alt, ENT_QUOTES, 'UTF-8') . '"';  | 
                                                        |
| 283 | + $title = ' title="'.htmlspecialchars($alt, ENT_QUOTES, 'UTF-8').'"';  | 
                                                        |
| 284 | 284 | }  | 
                                                        
| 285 | 285 | |
| 286 | 286 | if (!empty($url))  | 
                                                        
@@ -304,7 +304,7 @@ discard block  | 
                                                    ||
| 304 | 304 | public function icon($color = '', $alt = '', $url = '')  | 
                                                        
| 305 | 305 |  	{ | 
                                                        
| 306 | 306 | $title = '';  | 
                                                        
| 307 | -		if(empty($color)) { | 
                                                        |
| 307 | +		if (empty($color)) { | 
                                                        |
| 308 | 308 | $color = '00BF00';  | 
                                                        
| 309 | 309 | }  | 
                                                        
| 310 | 310 | $classes = 'fa fa-check-circle fa-fw';  | 
                                                        
@@ -330,7 +330,7 @@ discard block  | 
                                                    ||
| 330 | 330 | if (!empty($alt))  | 
                                                        
| 331 | 331 |  		{ | 
                                                        
| 332 | 332 | $alt = $this->user->lang($alt);  | 
                                                        
| 333 | - $title = ' title="' . htmlspecialchars($alt, ENT_QUOTES, 'UTF-8') . '"';  | 
                                                        |
| 333 | + $title = ' title="'.htmlspecialchars($alt, ENT_QUOTES, 'UTF-8').'"';  | 
                                                        |
| 334 | 334 | }  | 
                                                        
| 335 | 335 | |
| 336 | 336 | if (!empty($url))  | 
                                                        
@@ -354,6 +354,6 @@ discard block  | 
                                                    ||
| 354 | 354 | public function get_link_to_post($forum_id, $topic_id, $post_id)  | 
                                                        
| 355 | 355 |  	{ | 
                                                        
| 356 | 356 |  		return append_sid("{$this->root_path}viewtopic.{$this->php_ext}", | 
                                                        
| 357 | - "f=$forum_id&t=$topic_id&p=$post_id") . '#p' . $post_id;  | 
                                                        |
| 357 | + "f=$forum_id&t=$topic_id&p=$post_id").'#p'.$post_id;  | 
                                                        |
| 358 | 358 | }  | 
                                                        
| 359 | 359 | }  | 
                                                        
@@ -304,7 +304,8 @@  | 
                                                    ||
| 304 | 304 | public function icon($color = '', $alt = '', $url = '')  | 
                                                        
| 305 | 305 |  	{ | 
                                                        
| 306 | 306 | $title = '';  | 
                                                        
| 307 | -		if(empty($color)) { | 
                                                        |
| 307 | + if(empty($color))  | 
                                                        |
| 308 | +		{ | 
                                                        |
| 308 | 309 | $color = '00BF00';  | 
                                                        
| 309 | 310 | }  | 
                                                        
| 310 | 311 | $classes = 'fa fa-check-circle fa-fw';  |