@@ -619,7 +619,7 @@ |
||
619 | 619 | if (!empty($modSettings['force_ssl']) && empty($maintenance) && !httpsOn()) |
620 | 620 | fatal_lang_error('login_ssl_required', false); |
621 | 621 | |
622 | - $password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : ''; |
|
622 | + $password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : ''; |
|
623 | 623 | |
624 | 624 | // You didn't even enter a password! |
625 | 625 | if (trim($password) == '') |
@@ -738,7 +738,7 @@ |
||
738 | 738 | ); |
739 | 739 | else |
740 | 740 | $context['allowed_actions'] = array( |
741 | - 'ok' => $txt['admin_browse_w_approve'] .' '. $txt['admin_browse_no_email'], |
|
741 | + 'ok' => $txt['admin_browse_w_approve'] . ' ' . $txt['admin_browse_no_email'], |
|
742 | 742 | 'okemail' => $txt['admin_browse_w_approve'] . ' ' . $txt['admin_browse_w_email'], |
743 | 743 | 'require_activation' => $txt['admin_browse_w_approve_require_activate'], |
744 | 744 | 'reject' => $txt['admin_browse_w_reject'], |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | require_once($sourcedir . '/Load.php'); |
62 | 62 | |
63 | 63 | // If $maintenance is set specifically to 2, then we're upgrading or something. |
64 | -if (!empty($maintenance) && 2 === $maintenance) |
|
64 | +if (!empty($maintenance) && 2 === $maintenance) |
|
65 | 65 | display_maintenance_message(); |
66 | 66 | |
67 | 67 | // Create a variable to store some SMF specific functions in. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * |
112 | 112 | * @param string $class The fully-qualified class name. |
113 | 113 | */ |
114 | -spl_autoload_register(function ($class) use ($sourcedir) |
|
114 | +spl_autoload_register(function($class) use ($sourcedir) |
|
115 | 115 | { |
116 | 116 | $classMap = array( |
117 | 117 | 'ReCaptcha\\' => 'ReCaptcha/', |
@@ -1931,7 +1931,7 @@ |
||
1931 | 1931 | <div class="floatright smalltext righttext"> |
1932 | 1932 | <div class="recipient_to">« <strong>', $txt['to'], ':</strong> ', implode(', ', $draft['recipients']['to']), ' »</div>'; |
1933 | 1933 | |
1934 | - if(!empty($draft['recipients']['bcc'])) |
|
1934 | + if (!empty($draft['recipients']['bcc'])) |
|
1935 | 1935 | echo' |
1936 | 1936 | <div class="pm_bbc">« <strong>', $txt['pm_bcc'], ':</strong> ', implode(', ', $draft['recipients']['bcc']), ' »</div>'; |
1937 | 1937 |
@@ -756,7 +756,7 @@ |
||
756 | 756 | } |
757 | 757 | |
758 | 758 | // Filter out any redundant separators before we start the loop |
759 | - $context['config_vars'] = array_filter($context['config_vars'], function ($v) use ($context) |
|
759 | + $context['config_vars'] = array_filter($context['config_vars'], function($v) use ($context) |
|
760 | 760 | { |
761 | 761 | static $config_vars, $prev; |
762 | 762 |
@@ -581,7 +581,7 @@ |
||
581 | 581 | $value['id'] = $key; |
582 | 582 | |
583 | 583 | $button = ' |
584 | - <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>'; |
|
584 | + <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>'; |
|
585 | 585 | |
586 | 586 | if (!empty($value['sub_buttons'])) |
587 | 587 | { |
@@ -964,7 +964,7 @@ |
||
964 | 964 | $incontext['continue'] = 1; |
965 | 965 | |
966 | 966 | // Check Postgres setting |
967 | - if ( $db_type === 'postgresql') |
|
967 | + if ($db_type === 'postgresql') |
|
968 | 968 | { |
969 | 969 | load_database(); |
970 | 970 | $result = $smcFunc['db_query']('', ' |
@@ -816,7 +816,7 @@ |
||
816 | 816 | |
817 | 817 | $out = 'POST /smf/stats/collect_stats.php HTTP/1.1' . "\r\n"; |
818 | 818 | $out .= 'Host: www.simplemachines.org' . "\r\n"; |
819 | - $out .= 'user-agent: '. SMF_USER_AGENT . "\r\n"; |
|
819 | + $out .= 'user-agent: ' . SMF_USER_AGENT . "\r\n"; |
|
820 | 820 | $out .= 'content-type: application/x-www-form-urlencoded' . "\r\n"; |
821 | 821 | $out .= 'connection: Close' . "\r\n"; |
822 | 822 | $out .= 'content-length: ' . $length . "\r\n\r\n"; |
@@ -330,7 +330,7 @@ |
||
330 | 330 | WHERE t.id_board = {int:current_board} ' |
331 | 331 | . (!$modSettings['postmod_active'] || $context['can_approve_posts'] ? '' : ' |
332 | 332 | AND (t.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR t.id_member_started = {int:current_member}') . ')') . (!empty($message_index_topic_wheres) ? ' |
333 | - AND ' . implode("\n\t\t\t\tAND ", $message_index_topic_wheres) : ''). ' |
|
333 | + AND ' . implode("\n\t\t\t\tAND ", $message_index_topic_wheres) : '') . ' |
|
334 | 334 | ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . ' |
335 | 335 | LIMIT {int:maxindex} |
336 | 336 | OFFSET {int:start} '; |