|
@@ -135,7 +135,7 @@ discard block |
|
|
block discarded – undo |
|
135
|
135
|
$this->config->set('sm_show_forum_nav', $this->request->variable('show_forum_nav', 0)); |
|
136
|
136
|
$this->config->set('sm_forum_icon', $this->request->variable('forum_icon', '')); |
|
137
|
137
|
|
|
138
|
|
- $this->trigger_error($this->translator->lang('SETTINGS_SAVED') . adm_back_link($this->u_action)); |
|
|
138
|
+ $this->trigger_error($this->translator->lang('SETTINGS_SAVED').adm_back_link($this->u_action)); |
|
139
|
139
|
} |
|
140
|
140
|
} |
|
141
|
141
|
|
|
@@ -147,7 +147,7 @@ discard block |
|
|
block discarded – undo |
|
147
|
147
|
{ |
|
148
|
148
|
$style_prefs = json_decode($this->config_text->get('sm_layout_prefs'), true); |
|
149
|
149
|
|
|
150
|
|
- $result = $this->db->sql_query('SELECT style_id, style_name FROM ' . STYLES_TABLE); |
|
|
150
|
+ $result = $this->db->sql_query('SELECT style_id, style_name FROM '.STYLES_TABLE); |
|
151
|
151
|
|
|
152
|
152
|
$styles = array(); |
|
153
|
153
|
while ($row = $this->db->sql_fetchrow($result)) |
|
@@ -200,7 +200,7 @@ discard block |
|
|
block discarded – undo |
|
200
|
200
|
foreach ($layouts as $name => $path) |
|
201
|
201
|
{ |
|
202
|
202
|
$selected = ($path == $pref) ? ' selected="selected"' : ''; |
|
203
|
|
- $options .= '<option value="' . $path . '"' . $selected . '>' . $this->translator->lang('LAYOUT_' . strtoupper($name)) . '</option>'; |
|
|
203
|
+ $options .= '<option value="'.$path.'"'.$selected.'>'.$this->translator->lang('LAYOUT_'.strtoupper($name)).'</option>'; |
|
204
|
204
|
} |
|
205
|
205
|
|
|
206
|
206
|
return $options; |
|
@@ -214,11 +214,11 @@ discard block |
|
|
block discarded – undo |
|
214
|
214
|
{ |
|
215
|
215
|
$views = array('basic', 'boxed', 'simple'); |
|
216
|
216
|
|
|
217
|
|
- $options = '<option value="">' . $this->translator->lang('BLOCK_VIEW_DEFAULT') . '</option>'; |
|
|
217
|
+ $options = '<option value="">'.$this->translator->lang('BLOCK_VIEW_DEFAULT').'</option>'; |
|
218
|
218
|
foreach ($views as $view) |
|
219
|
219
|
{ |
|
220
|
220
|
$selected = ($view == $pref) ? ' selected="selected"' : ''; |
|
221
|
|
- $options .= '<option value="' . $view . '"' . $selected . '>' . $this->translator->lang('BLOCK_VIEW_' . strtoupper($view)) . '</option>'; |
|
|
221
|
+ $options .= '<option value="'.$view.'"'.$selected.'>'.$this->translator->lang('BLOCK_VIEW_'.strtoupper($view)).'</option>'; |
|
222
|
222
|
} |
|
223
|
223
|
|
|
224
|
224
|
return $options; |
|
@@ -260,7 +260,7 @@ discard block |
|
|
block discarded – undo |
|
260
|
260
|
$path = dirname($path); |
|
261
|
261
|
$name = basename($path); |
|
262
|
262
|
|
|
263
|
|
- $layouts[$name] = $this->phpbb_root_path . $path . '/'; |
|
|
263
|
+ $layouts[$name] = $this->phpbb_root_path.$path.'/'; |
|
264
|
264
|
} |
|
265
|
265
|
ksort($layouts); |
|
266
|
266
|
|