@@ -133,14 +133,14 @@ discard block |
||
| 133 | 133 | $class_name = $this->getImplementationClassKeyName(); |
| 134 | 134 | $class_name_txt_key = strtolower($class_name); |
| 135 | 135 | |
| 136 | - $config_vars[] = $txt['cache_'. $class_name_txt_key .'_settings']; |
|
| 136 | + $config_vars[] = $txt['cache_' . $class_name_txt_key . '_settings']; |
|
| 137 | 137 | $config_vars[] = array( |
| 138 | - 'cachedir_'. $class_name_txt_key, |
|
| 139 | - $txt['cachedir_'. $class_name_txt_key], |
|
| 138 | + 'cachedir_' . $class_name_txt_key, |
|
| 139 | + $txt['cachedir_' . $class_name_txt_key], |
|
| 140 | 140 | 'file', |
| 141 | 141 | 'text', |
| 142 | 142 | 36, |
| 143 | - 'cache_'. $class_name_txt_key .'_cachedir', |
|
| 143 | + 'cache_' . $class_name_txt_key . '_cachedir', |
|
| 144 | 144 | ); |
| 145 | 145 | |
| 146 | 146 | if (!isset($context['settings_post_javascript'])) |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $context['settings_post_javascript'] .= ' |
| 151 | 151 | $("#cache_accelerator").change(function (e) { |
| 152 | 152 | var cache_type = e.currentTarget.value; |
| 153 | - $("#cachedir_'. $class_name_txt_key .'").prop("disabled", cache_type != "'. $class_name .'"); |
|
| 153 | + $("#cachedir_'. $class_name_txt_key . '").prop("disabled", cache_type != "' . $class_name . '"); |
|
| 154 | 154 | });'; |
| 155 | 155 | } |
| 156 | 156 | |
@@ -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 | |