@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | // Filter out any redundant separators before we start the loop |
759 | 759 | $context['config_vars'] = array_filter( |
760 | 760 | $context['config_vars'], |
761 | - function ($v) use ($context) |
|
761 | + function($v) use ($context) |
|
762 | 762 | { |
763 | 763 | static $config_vars, $prev; |
764 | 764 | |
@@ -1659,7 +1659,7 @@ discard block |
||
1659 | 1659 | echo ' |
1660 | 1660 | <form action="' . $scripturl . '?action=admin;area=search" method="post" accept-charset="' . $context['character_set'] . '" class="admin_search"> |
1661 | 1661 | <span class="main_icons filter centericon"></span> |
1662 | - <input type="search" name="search_term" placeholder="', $txt['admin_search'], '"', isset($context['search_term']) ? ' value="' . $context['search_term'] . '"' : '','> |
|
1662 | + <input type="search" name="search_term" placeholder="', $txt['admin_search'], '"', isset($context['search_term']) ? ' value="' . $context['search_term'] . '"' : '', '> |
|
1663 | 1663 | <select name="search_type"> |
1664 | 1664 | <option value="internal"', (empty($context['admin_preferences']['sb']) || $context['admin_preferences']['sb'] == 'internal' ? ' selected' : ''), '>', $txt['admin_search_type_internal'], '</option> |
1665 | 1665 | <option value="member"', (!empty($context['admin_preferences']['sb']) && $context['admin_preferences']['sb'] == 'member' ? ' selected' : ''), '>', $txt['admin_search_type_member'], '</option> |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | ', sprintf($txt['welcome_to_forum'], $context['forum_name_html_safe']), ' |
274 | 274 | </li> |
275 | 275 | <li class="button_login"> |
276 | - <a href="', $scripturl, '?action=login" class="', $context['current_action'] == 'login' ? 'active' : 'open','" onclick="return reqOverlayDiv(this.href, ' . JavaScriptEscape($txt['login']) . ', \'login\');"> |
|
276 | + <a href="', $scripturl, '?action=login" class="', $context['current_action'] == 'login' ? 'active' : 'open', '" onclick="return reqOverlayDiv(this.href, ' . JavaScriptEscape($txt['login']) . ', \'login\');"> |
|
277 | 277 | <span class="main_icons login"></span> |
278 | 278 | <span class="textmenu">', $txt['login'], '</span> |
279 | 279 | </a> |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | if ($context['can_register']) |
283 | 283 | echo ' |
284 | 284 | <li class="button_signup"> |
285 | - <a href="', $scripturl, '?action=signup" class="', $context['current_action'] == 'signup' ? 'active' : 'open','"> |
|
285 | + <a href="', $scripturl, '?action=signup" class="', $context['current_action'] == 'signup' ? 'active' : 'open', '"> |
|
286 | 286 | <span class="main_icons regcenter"></span> |
287 | 287 | <span class="textmenu">', $txt['register'], '</span> |
288 | 288 | </a> |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | $value['id'] = $key; |
637 | 637 | |
638 | 638 | $button = ' |
639 | - <a class="button button_strip_' . $key . (!empty($value['active']) ? ' active' : '') . (isset($value['class']) ? ' ' . $value['class'] : '') . '" ' . (!empty($value['url']) ? 'href="' . $value['url'] . '"' : '') . ' ' . (isset($value['custom']) ? ' ' . $value['custom'] : '') . '>'.(!empty($value['icon']) ? '<span class="main_icons '.$value['icon'].'"></span>' : '').'' . $txt[$value['text']] . '</a>'; |
|
639 | + <a class="button button_strip_' . $key . (!empty($value['active']) ? ' active' : '') . (isset($value['class']) ? ' ' . $value['class'] : '') . '" ' . (!empty($value['url']) ? 'href="' . $value['url'] . '"' : '') . ' ' . (isset($value['custom']) ? ' ' . $value['custom'] : '') . '>' . (!empty($value['icon']) ? '<span class="main_icons ' . $value['icon'] . '"></span>' : '') . '' . $txt[$value['text']] . '</a>'; |
|
640 | 640 | |
641 | 641 | if (!empty($value['sub_buttons'])) |
642 | 642 | { |
@@ -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 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | require_once($sourcedir . '/Subs-Compat.php'); |
83 | 83 | |
84 | 84 | // If $maintenance is set specifically to 2, then we're upgrading or something. |
85 | -if (!empty($maintenance) && 2 === $maintenance) |
|
85 | +if (!empty($maintenance) && 2 === $maintenance) |
|
86 | 86 | { |
87 | 87 | display_maintenance_message(); |
88 | 88 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * |
99 | 99 | * @param string $class The fully-qualified class name. |
100 | 100 | */ |
101 | -spl_autoload_register(function ($class) use ($sourcedir) |
|
101 | +spl_autoload_register(function($class) use ($sourcedir) |
|
102 | 102 | { |
103 | 103 | $classMap = array( |
104 | 104 | 'ReCaptcha\\' => 'ReCaptcha/', |
@@ -165,8 +165,7 @@ |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | // No access if you don't have permission to see this attachment. |
168 | - if |
|
169 | - ( |
|
168 | + if ( |
|
170 | 169 | // This was from SMF or a hook didn't claim it. |
171 | 170 | ( |
172 | 171 | empty($file['source']) |
@@ -191,8 +191,7 @@ |
||
191 | 191 | ) |
192 | 192 | // We are not previewing an attachment. |
193 | 193 | && !isset($_SESSION['attachments_can_preview'][$attachId]) |
194 | - ) |
|
195 | - { |
|
194 | + ) { |
|
196 | 195 | send_http_status(404, 'File Not Found'); |
197 | 196 | die('404 File Not Found'); |
198 | 197 | } |
@@ -169,16 +169,16 @@ discard block |
||
169 | 169 | { |
170 | 170 | global $context, $txt; |
171 | 171 | |
172 | - if (!in_array($txt[self::CLASS_KEY .'_settings'], $config_vars)) |
|
172 | + if (!in_array($txt[self::CLASS_KEY . '_settings'], $config_vars)) |
|
173 | 173 | { |
174 | - $config_vars[] = $txt[self::CLASS_KEY .'_settings']; |
|
174 | + $config_vars[] = $txt[self::CLASS_KEY . '_settings']; |
|
175 | 175 | $config_vars[] = array( |
176 | 176 | self::CLASS_KEY, |
177 | - $txt[self::CLASS_KEY .'_servers'], |
|
177 | + $txt[self::CLASS_KEY . '_servers'], |
|
178 | 178 | 'file', |
179 | 179 | 'text', |
180 | 180 | 0, |
181 | - 'subtext' => $txt[self::CLASS_KEY .'_servers_subtext']); |
|
181 | + 'subtext' => $txt[self::CLASS_KEY . '_servers_subtext']); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | if (!isset($context['settings_post_javascript'])) |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $context['settings_post_javascript'] .= ' |
189 | 189 | $("#cache_accelerator").change(function (e) { |
190 | 190 | var cache_type = e.currentTarget.value; |
191 | - $("#'. self::CLASS_KEY .'").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
191 | + $("#'. self::CLASS_KEY . '").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
192 | 192 | });'; |
193 | 193 | } |
194 | 194 |
@@ -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 |
@@ -169,16 +169,16 @@ discard block |
||
169 | 169 | { |
170 | 170 | global $context, $txt; |
171 | 171 | |
172 | - if (!in_array($txt[self::CLASS_KEY .'_settings'], $config_vars)) |
|
172 | + if (!in_array($txt[self::CLASS_KEY . '_settings'], $config_vars)) |
|
173 | 173 | { |
174 | - $config_vars[] = $txt[self::CLASS_KEY .'_settings']; |
|
174 | + $config_vars[] = $txt[self::CLASS_KEY . '_settings']; |
|
175 | 175 | $config_vars[] = array( |
176 | 176 | self::CLASS_KEY, |
177 | - $txt[self::CLASS_KEY .'_servers'], |
|
177 | + $txt[self::CLASS_KEY . '_servers'], |
|
178 | 178 | 'file', |
179 | 179 | 'text', |
180 | 180 | 0, |
181 | - 'subtext' => $txt[self::CLASS_KEY .'_servers_subtext']); |
|
181 | + 'subtext' => $txt[self::CLASS_KEY . '_servers_subtext']); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | if (!isset($context['settings_post_javascript'])) |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $context['settings_post_javascript'] .= ' |
189 | 189 | $("#cache_accelerator").change(function (e) { |
190 | 190 | var cache_type = e.currentTarget.value; |
191 | - $("#'. self::CLASS_KEY .'").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
191 | + $("#'. self::CLASS_KEY . '").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation"); |
|
192 | 192 | });'; |
193 | 193 | } |
194 | 194 |