@@ -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 | |
@@ -117,7 +117,8 @@ |
||
| 117 | 117 | else |
| 118 | 118 | fatal_lang_error('no_access', false); |
| 119 | 119 | |
| 120 | - switch ($_GET['help']) { |
|
| 120 | + switch ($_GET['help']) |
|
| 121 | + { |
|
| 121 | 122 | case 'cal_short_months': |
| 122 | 123 | $context['help_text'] = sprintf($context['help_text'], $txt['months_short'][1], $txt['months_titles'][1]); |
| 123 | 124 | break; |