@@ -103,8 +103,8 @@ discard block |
||
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 |
||
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; |
@@ -82,8 +82,7 @@ |
||
82 | 82 | \phpbb\request\request_interface $request, |
83 | 83 | \phpbb\pagination $pagination, |
84 | 84 | \phpbb\template\template $template |
85 | - ) |
|
86 | - { |
|
85 | + ) { |
|
87 | 86 | parent::__construct($auth, $content_visibility, $translator, $user, $truncator, $date_range, $forum_data, $forum_options, $phpbb_root_path, $php_ext); |
88 | 87 | |
89 | 88 | $this->cache = $cache; |
@@ -82,7 +82,7 @@ |
||
82 | 82 | { |
83 | 83 | if ($bdata['settings']['query_type'] === 'tenured') |
84 | 84 | { |
85 | - $bdata['settings']['date_range'] = ''; |
|
85 | + $bdata['settings']['date_range'] = ''; |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | $data = $this->members->get_list($bdata['settings']); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | protected function clean_styles() |
108 | 108 | { |
109 | 109 | $routes_ary = array_keys($this->manager->get_routes('style')); |
110 | - $style_ids = $this->get_style_ids(); |
|
110 | + $style_ids = $this->get_style_ids(); |
|
111 | 111 | $col_widths = (array) json_decode($this->config['sitemaker_column_widths'], true); |
112 | 112 | |
113 | 113 | foreach ($routes_ary as $style_id) |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | protected function clean_routes() |
137 | 137 | { |
138 | 138 | $board_url = generate_board_url(); |
139 | - $routes = array_keys($this->manager->get_routes('route')); |
|
139 | + $routes = array_keys($this->manager->get_routes('route')); |
|
140 | 140 | $forumslist = (array) make_forum_select(false, false, true, false, false, false, true); |
141 | 141 | |
142 | 142 | foreach ($routes as $route) |