@@ -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 | { |
@@ -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/', |
@@ -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 |
@@ -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 |