| 
                                                        @@ -103,8 +103,8 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    103
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    103
                                                                                                                                                                                                 | 
                                                             		$config['max_topics']['lang'] = 'TOPICS_PER_PAGE';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    104
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    104
                                                                                                                                                                                                 | 
                                                             		unset($config['template'], $config['context']);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    105
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    105
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    106
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$config['date_range']	= array('lang' => 'TOPICS_LOOK_BACK', 'validate' => 'int:0:255', 'type' => 'number:1:255', 'maxlength' => 3, 'default' => 60, 'append' => 'DAYS'); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    107
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$config['last_post']	= array('lang' => 'SHOW_LAST_POST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'default' => true); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    106
                                                                                                                                                                                                 | 
                                                            +		$config['date_range'] = array('lang' => 'TOPICS_LOOK_BACK', 'validate' => 'int:0:255', 'type' => 'number:1:255', 'maxlength' => 3, 'default' => 60, 'append' => 'DAYS'); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    107
                                                                                                                                                                                                 | 
                                                            +		$config['last_post'] = array('lang' => 'SHOW_LAST_POST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'default' => true); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    108
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    108
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    109
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    109
                                                                                                                                                                                                 | 
                                                             		$keys = array_keys($config);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    110
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    110
                                                                                                                                                                                                 | 
                                                             		$keys[array_search('max_topics', $keys)] = 'per_page'; | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -210,21 +210,21 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    210
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    210
                                                                                                                                                                                                 | 
                                                             		$folder_img = $folder_alt = $topic_type = '';  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    211
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    211
                                                                                                                                                                                                 | 
                                                             		topic_status($topic_data, $replies, $unread_topic, $folder_img, $folder_alt, $topic_type);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    212
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    212
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    213
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$template_data['S_HAS_POLL']			= (bool) $topic_data['poll_start'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    214
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$template_data['S_TOPIC_ICONS']			= (bool) $topic_data['enable_icons'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    215
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$template_data['TOPIC_IMG_STYLE']		= $folder_img;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    213
                                                                                                                                                                                                 | 
                                                            +		$template_data['S_HAS_POLL'] = (bool) $topic_data['poll_start'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    214
                                                                                                                                                                                                 | 
                                                            +		$template_data['S_TOPIC_ICONS'] = (bool) $topic_data['enable_icons'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    215
                                                                                                                                                                                                 | 
                                                            +		$template_data['TOPIC_IMG_STYLE'] = $folder_img;  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    216
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    216
                                                                                                                                                                                                 | 
                                                             		$template_data['TOPIC_FOLDER_IMG']		= $this->user->img($folder_img, $folder_alt);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    217
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$template_data['TOPIC_FOLDER_IMG_ALT']	= $this->user->lang[$folder_alt];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    217
                                                                                                                                                                                                 | 
                                                            +		$template_data['TOPIC_FOLDER_IMG_ALT'] = $this->user->lang[$folder_alt];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    218
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    218
                                                                                                                                                                                                 | 
                                                             		$template_data['TOPIC_TYPE_CLASS']		= $this->topic_type_class[$topic_data['topic_type']];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    219
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$template_data['TOPIC_TIME_RFC3339']	= gmdate(DATE_RFC3339, $topic_data['topic_time']);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    219
                                                                                                                                                                                                 | 
                                                            +		$template_data['TOPIC_TIME_RFC3339'] = gmdate(DATE_RFC3339, $topic_data['topic_time']);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    220
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    220
                                                                                                                                                                                                 | 
                                                             		$template_data['LAST_POST_TIME_RFC3339'] = gmdate(DATE_RFC3339, $topic_data['topic_last_post_time']);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    221
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -		$template_data['LAST_POST_TIME']		= $this->user->format_date($topic_data['topic_last_post_time']);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    221
                                                                                                                                                                                                 | 
                                                            +		$template_data['LAST_POST_TIME'] = $this->user->format_date($topic_data['topic_last_post_time']);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    222
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    222
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    223
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    223
                                                                                                                                                                                                 | 
                                                             		if (!empty($this->icons[$topic_data['icon_id']]))  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    224
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    224
                                                                                                                                                                                                 | 
                                                             		{ | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    225
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -			$template_data['TOPIC_ICON_IMG']		= $this->icons[$topic_data['icon_id']]['img'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    226
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -			$template_data['TOPIC_ICON_IMG_WIDTH']	= $this->icons[$topic_data['icon_id']]['width'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    227
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -			$template_data['TOPIC_ICON_IMG_HEIGHT']	= $this->icons[$topic_data['icon_id']]['height'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    225
                                                                                                                                                                                                 | 
                                                            +			$template_data['TOPIC_ICON_IMG'] = $this->icons[$topic_data['icon_id']]['img'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    226
                                                                                                                                                                                                 | 
                                                            +			$template_data['TOPIC_ICON_IMG_WIDTH'] = $this->icons[$topic_data['icon_id']]['width'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    227
                                                                                                                                                                                                 | 
                                                            +			$template_data['TOPIC_ICON_IMG_HEIGHT'] = $this->icons[$topic_data['icon_id']]['height'];  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    228
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    228
                                                                                                                                                                                                 | 
                                                             		}  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    229
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    229
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    230
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    230
                                                                                                                                                                                                 | 
                                                             		return $template_data;  |