@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $vars['params'][] = array_filter((array) $db_settings[$field]); |
55 | - $vars['params'][] = $type[1]; // sortable |
|
55 | + $vars['params'][] = $type[1]; // sortable |
|
56 | 56 | $vars['params'][] = $field; |
57 | 57 | |
58 | 58 | $type[0] = 'custom'; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $vars['method'] = 'build_checkbox'; |
36 | 36 | $vars['params'][] = $field; |
37 | - $vars['params'][] = (string) $type[1]; // css class to be applied to list |
|
37 | + $vars['params'][] = (string) $type[1]; // css class to be applied to list |
|
38 | 38 | $type[0] = 'custom'; |
39 | 39 | } |
40 | 40 |
@@ -136,7 +136,7 @@ |
||
136 | 136 | $block = array(); |
137 | 137 | if ($this->block_is_viewable($db_data, $display_modes, $users_groups, $edit_mode) && ($block_instance = $this->block_factory->get_block($service_name)) !== null) |
138 | 138 | { |
139 | - $returned_data = array( |
|
139 | + $returned_data = array( |
|
140 | 140 | 'title' => '', |
141 | 141 | 'data' => null, |
142 | 142 | 'content' => null, |
@@ -147,7 +147,7 @@ |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | [$is_current_item, $is_parent] = $this->get_current_item($row); |
150 | - $depth = $this->get_parental_depth($row) + 1; |
|
150 | + $depth = $this->get_parental_depth($row) + 1; |
|
151 | 151 | $leaf = $this->get_leaf_node($row, $is_current_item, $is_parent); |
152 | 152 | |
153 | 153 | $this->parental_depth[$row[$this->pk]] = $depth; |
@@ -168,7 +168,7 @@ |
||
168 | 168 | */ |
169 | 169 | public function display_list(array $data) |
170 | 170 | { |
171 | - $data = array_map(function($row) { |
|
171 | + $data = array_map(function ($row) { |
|
172 | 172 | $row['num_kids'] = $this->count_descendants($row); |
173 | 173 | return array_change_key_case($row, CASE_UPPER); |
174 | 174 | }, $data); |
@@ -125,7 +125,7 @@ |
||
125 | 125 | */ |
126 | 126 | protected function save_locations(array $locations) |
127 | 127 | { |
128 | - $locations = array_merge($this->get_locations(), $locations); |
|
128 | + $locations = array_merge($this->get_locations(), $locations); |
|
129 | 129 | |
130 | 130 | $this->config->set('sm_navbar_locations', json_encode(array_filter($locations))); |
131 | 131 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | if (!empty($groups)) |
90 | 90 | { |
91 | - $permission = array( |
|
91 | + $permission = array( |
|
92 | 92 | 'type' => $this->request->variable('perm_type', 0), |
93 | 93 | 'groups' => $groups, |
94 | 94 | ); |
@@ -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,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']); |