@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // Just send a generic message. |
77 | 77 | else |
78 | 78 | $this->setResponse(array( |
79 | - 'text' => $this->_sa == 'add' ? 'attach_error_title' : 'attached_file_deleted_error', |
|
79 | + 'text' => $this->_sa == 'add' ? 'attach_error_title' : 'attached_file_deleted_error', |
|
80 | 80 | 'type' => 'error', |
81 | 81 | 'data' => false, |
82 | 82 | )); |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | // Gotta urlencode the filename. |
411 | 411 | if ($this->_attachResults) |
412 | 412 | foreach ($this->_attachResults as $k => $v) |
413 | - $this->_attachResults[$k]['name'] = urlencode($this->_attachResults[$k]['name']); |
|
413 | + $this->_attachResults[$k]['name'] = urlencode($this->_attachResults[$k]['name']); |
|
414 | 414 | |
415 | 415 | $this->_response = array( |
416 | 416 | 'files' => $this->_attachResults ? $this->_attachResults : false, |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | ob_start(); |
438 | 438 | |
439 | 439 | // Set the header. |
440 | - header('content-type: application/json; charset='. $context['character_set'] .''); |
|
440 | + header('content-type: application/json; charset=' . $context['character_set'] . ''); |
|
441 | 441 | |
442 | 442 | echo $smcFunc['json_encode']($this->_response ? $this->_response : array()); |
443 | 443 |
@@ -704,7 +704,7 @@ |
||
704 | 704 | $mail_result = false; |
705 | 705 | } |
706 | 706 | } |
707 | - catch(ErrorException $e) |
|
707 | + catch (ErrorException $e) |
|
708 | 708 | { |
709 | 709 | log_error($e->getMessage(), 'general', $e->getFile(), $e->getLine()); |
710 | 710 | log_error(sprintf($txt['mail_send_unable'], $to)); |
@@ -140,7 +140,7 @@ |
||
140 | 140 | $max_age = $time - $cached['time'] + (5 * 86400); |
141 | 141 | header('content-type: ' . $cached['content_type']); |
142 | 142 | header('content-length: ' . $cached['size']); |
143 | - header('cache-control: public, max-age=' . $max_age ); |
|
143 | + header('cache-control: public, max-age=' . $max_age); |
|
144 | 144 | header('last-modified: ' . gmdate('D, d M Y H:i:s', $cached['time']) . ' GMT'); |
145 | 145 | header('etag: ' . $eTag); |
146 | 146 | echo base64_decode($cached['body']); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | } |
251 | 251 | $smcFunc['db_free_result']($request); |
252 | 252 | |
253 | - if($withSender) |
|
253 | + if ($withSender) |
|
254 | 254 | { |
255 | 255 | $senders = loadMemberData($senders); |
256 | 256 | foreach ($senders as $member) |
@@ -1896,7 +1896,7 @@ discard block |
||
1896 | 1896 | if (count($context['ip']) !== 2) |
1897 | 1897 | fatal_lang_error('invalid_tracking_ip', false); |
1898 | 1898 | |
1899 | - $ip_string = array('{inet:ip_address_low}','{inet:ip_address_high}'); |
|
1899 | + $ip_string = array('{inet:ip_address_low}', '{inet:ip_address_high}'); |
|
1900 | 1900 | $fields = array( |
1901 | 1901 | 'ip_address_low' => $context['ip']['low'], |
1902 | 1902 | 'ip_address_high' => $context['ip']['high'], |
@@ -1904,7 +1904,7 @@ discard block |
||
1904 | 1904 | |
1905 | 1905 | $ip_var = $context['ip']; |
1906 | 1906 | |
1907 | - if ($context['ip']['low'] !== $context['ip']['high']) |
|
1907 | + if ($context['ip']['low'] !== $context['ip']['high']) |
|
1908 | 1908 | $context['ip'] = $context['ip']['low'] . ' - ' . $context['ip']['high']; |
1909 | 1909 | else |
1910 | 1910 | $context['ip'] = $context['ip']['low']; |
@@ -461,7 +461,7 @@ |
||
461 | 461 | $fields = ''; |
462 | 462 | foreach ($context['print_custom_fields']['below_signature'] as $field) |
463 | 463 | if (!empty($field['output_html'])) |
464 | - $fields .= ' |
|
464 | + $fields .= ' |
|
465 | 465 | <li>' . $field['output_html'] . '</li>'; |
466 | 466 | |
467 | 467 | if (!empty($fields)) |
@@ -85,7 +85,7 @@ |
||
85 | 85 | foreach ($board['children'] as $child) |
86 | 86 | { |
87 | 87 | if (!$child['is_redirect']) |
88 | - $child['link'] = ''. ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
88 | + $child['link'] = '' . ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
89 | 89 | else |
90 | 90 | $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>'; |
91 | 91 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | echo ' |
72 | 72 | <div class="main_container"> |
73 | - <div class="cat_bar ', $category['is_collapsed'] ? 'collapsed' : '','" id="category_', $category['id'], '"> |
|
73 | + <div class="cat_bar ', $category['is_collapsed'] ? 'collapsed' : '', '" id="category_', $category['id'], '"> |
|
74 | 74 | <h3 class="catbg">'; |
75 | 75 | |
76 | 76 | // If this category even can collapse, show a link to collapse it. |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | foreach ($board['children'] as $child) |
250 | 250 | { |
251 | 251 | if (!$child['is_redirect']) |
252 | - $child['link'] = ''. ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
252 | + $child['link'] = '' . ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
253 | 253 | else |
254 | 254 | $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . ' - ' . $child['short_description'] . '">' . $child['name'] . '</a>'; |
255 | 255 |
@@ -1256,7 +1256,7 @@ discard block |
||
1256 | 1256 | ); |
1257 | 1257 | if (empty($value)) |
1258 | 1258 | { |
1259 | - $deletes = array('id_theme' => 1 , 'variable' => $row['col_name'], 'id_member' => $memID); |
|
1259 | + $deletes = array('id_theme' => 1, 'variable' => $row['col_name'], 'id_member' => $memID); |
|
1260 | 1260 | unset($user_profile[$memID]['options'][$row['col_name']]); |
1261 | 1261 | } |
1262 | 1262 | else |
@@ -1284,7 +1284,7 @@ discard block |
||
1284 | 1284 | array('id_theme', 'variable', 'id_member') |
1285 | 1285 | ); |
1286 | 1286 | if (!empty($deletes)) |
1287 | - $smcFunc['db_query']('',' |
|
1287 | + $smcFunc['db_query']('', ' |
|
1288 | 1288 | DELETE FROM {db_prefix}themes |
1289 | 1289 | WHERE id_theme = {int:id_theme} AND |
1290 | 1290 | variable = {string:variable} AND |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | if ($c === $n) { |
138 | 138 | $q = $delta; |
139 | - for ($k = static::BASE;; $k += static::BASE) { |
|
139 | + for ($k = static::BASE; ; $k += static::BASE) { |
|
140 | 140 | $t = $this->calculateThreshold($k, $bias); |
141 | 141 | if ($q < $t) { |
142 | 142 | break; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | $oldi = $i; |
225 | 225 | $w = 1; |
226 | 226 | |
227 | - for ($k = static::BASE;; $k += static::BASE) { |
|
227 | + for ($k = static::BASE; ; $k += static::BASE) { |
|
228 | 228 | $digit = static::$decodeTable[$input[$pos++]]; |
229 | 229 | $i = $i + ($digit * $w); |
230 | 230 | $t = $this->calculateThreshold($k, $bias); |