@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | $class_name = $this->getImplementationClassKeyName(); |
219 | 219 | $class_name_txt_key = strtolower($class_name); |
220 | 220 | |
221 | - $config_vars[] = $txt['cache_'. $class_name_txt_key .'_settings']; |
|
221 | + $config_vars[] = $txt['cache_' . $class_name_txt_key . '_settings']; |
|
222 | 222 | $config_vars[] = array('cachedir', $txt['cachedir'], 'file', 'text', 36, 'cache_cachedir'); |
223 | 223 | |
224 | 224 | if (!isset($context['settings_post_javascript'])) |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | $context['settings_post_javascript'] .= ' |
229 | 229 | $("#cache_accelerator").change(function (e) { |
230 | 230 | var cache_type = e.currentTarget.value; |
231 | - $("#cachedir").prop("disabled", cache_type != "'. $class_name .'"); |
|
231 | + $("#cachedir").prop("disabled", cache_type != "'. $class_name . '"); |
|
232 | 232 | });'; |
233 | 233 | } |
234 | 234 |
@@ -155,8 +155,7 @@ |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | // No access if you don't have permission to see this attachment. |
158 | - if |
|
159 | - ( |
|
158 | + if ( |
|
160 | 159 | // This was from SMF or a hook didn't claim it. |
161 | 160 | ( |
162 | 161 | empty($file['source']) |
@@ -181,8 +181,7 @@ |
||
181 | 181 | ) |
182 | 182 | // We are not previewing an attachment. |
183 | 183 | && !isset($_SESSION['attachments_can_preview'][$attachId]) |
184 | - ) |
|
185 | - { |
|
184 | + ) { |
|
186 | 185 | send_http_status(404, 'File Not Found'); |
187 | 186 | die('404 File Not Found'); |
188 | 187 | } |
@@ -149,16 +149,16 @@ discard block |
||
149 | 149 | { |
150 | 150 | global $context, $txt; |
151 | 151 | |
152 | - if (!in_array($txt[self::CLASS_KEY .'_settings'], $config_vars)) |
|
152 | + if (!in_array($txt[self::CLASS_KEY . '_settings'], $config_vars)) |
|
153 | 153 | { |
154 | - $config_vars[] = $txt[self::CLASS_KEY .'_settings']; |
|
154 | + $config_vars[] = $txt[self::CLASS_KEY . '_settings']; |
|
155 | 155 | $config_vars[] = array( |
156 | 156 | self::CLASS_KEY, |
157 | - $txt[self::CLASS_KEY .'_servers'], |
|
157 | + $txt[self::CLASS_KEY . '_servers'], |
|
158 | 158 | 'file', |
159 | 159 | 'text', |
160 | 160 | 0, |
161 | - 'subtext' => $txt[self::CLASS_KEY .'_servers_subtext']); |
|
161 | + 'subtext' => $txt[self::CLASS_KEY . '_servers_subtext']); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | if (!isset($context['settings_post_javascript'])) |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $context['settings_post_javascript'] .= ' |
169 | 169 | $("#cache_accelerator").change(function (e) { |
170 | 170 | var cache_type = e.currentTarget.value; |
171 | - $("#'. self::CLASS_KEY .'").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
171 | + $("#'. self::CLASS_KEY . '").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
172 | 172 | });'; |
173 | 173 | } |
174 | 174 |
@@ -149,16 +149,16 @@ discard block |
||
149 | 149 | { |
150 | 150 | global $context, $txt; |
151 | 151 | |
152 | - if (!in_array($txt[self::CLASS_KEY .'_settings'], $config_vars)) |
|
152 | + if (!in_array($txt[self::CLASS_KEY . '_settings'], $config_vars)) |
|
153 | 153 | { |
154 | - $config_vars[] = $txt[self::CLASS_KEY .'_settings']; |
|
154 | + $config_vars[] = $txt[self::CLASS_KEY . '_settings']; |
|
155 | 155 | $config_vars[] = array( |
156 | 156 | self::CLASS_KEY, |
157 | - $txt[self::CLASS_KEY .'_servers'], |
|
157 | + $txt[self::CLASS_KEY . '_servers'], |
|
158 | 158 | 'file', |
159 | 159 | 'text', |
160 | 160 | 0, |
161 | - 'subtext' => $txt[self::CLASS_KEY .'_servers_subtext']); |
|
161 | + 'subtext' => $txt[self::CLASS_KEY . '_servers_subtext']); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | if (!isset($context['settings_post_javascript'])) |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $context['settings_post_javascript'] .= ' |
169 | 169 | $("#cache_accelerator").change(function (e) { |
170 | 170 | var cache_type = e.currentTarget.value; |
171 | - $("#'. self::CLASS_KEY .'").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
171 | + $("#'. self::CLASS_KEY . '").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
172 | 172 | });'; |
173 | 173 | } |
174 | 174 |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | global $context, $scripturl, $txt, $settings, $options, $modSettings; |
279 | 279 | |
280 | 280 | echo ' |
281 | - <div class="windowbg" id="msg', $message['id'],'"> |
|
281 | + <div class="windowbg" id="msg', $message['id'], '"> |
|
282 | 282 | <div class="post_wrapper"> |
283 | 283 | <div class="poster">'; |
284 | 284 | |
@@ -1961,7 +1961,7 @@ discard block |
||
1961 | 1961 | <div class="smalltext"> |
1962 | 1962 | <div class="recipient_to"><strong>', $txt['pm_to'], ':</strong> ', implode(', ', $draft['recipients']['to']), '</div>'; |
1963 | 1963 | |
1964 | - if(!empty($draft['recipients']['bcc'])) |
|
1964 | + if (!empty($draft['recipients']['bcc'])) |
|
1965 | 1965 | echo' |
1966 | 1966 | <div class="pm_bbc"><strong>', $txt['pm_bcc'], ':</strong> ', implode(', ', $draft['recipients']['bcc']), '</div>'; |
1967 | 1967 |