@@ -1155,7 +1155,7 @@ |
||
1155 | 1155 | // We're really just checking for entries which are create table AND add columns (etc). |
1156 | 1156 | $tables = array(); |
1157 | 1157 | |
1158 | - usort($db_package_log, function ($a, $b) |
|
1158 | + usort($db_package_log, function($a, $b) |
|
1159 | 1159 | { |
1160 | 1160 | if ($a[0] == $b[0]) |
1161 | 1161 | return 0; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | display_db_error(); |
74 | 74 | |
75 | 75 | // We need to escape ' and \ |
76 | - $db_passwd = str_replace(array('\\','\''), array('\\\\','\\\''), $db_passwd); |
|
76 | + $db_passwd = str_replace(array('\\', '\''), array('\\\\', '\\\''), $db_passwd); |
|
77 | 77 | |
78 | 78 | if (!empty($db_options['persist'])) |
79 | 79 | $connection = @pg_pconnect((empty($db_server) ? '' : 'host=' . $db_server . ' ') . 'dbname=' . $db_name . ' user=\'' . $db_user . '\' password=\'' . $db_passwd . '\'' . (empty($db_options['port']) ? '' : ' port=\'' . $db_options['port'] . '\'')); |
@@ -741,7 +741,7 @@ |
||
741 | 741 | <div class="information noup">', $context['settings_message'], '</div>'; |
742 | 742 | |
743 | 743 | // Filter out any redundant separators before we start the loop |
744 | - $context['config_vars'] = array_filter($context['config_vars'], function ($v) use ($context) |
|
744 | + $context['config_vars'] = array_filter($context['config_vars'], function($v) use ($context) |
|
745 | 745 | { |
746 | 746 | static $config_vars, $prev; |
747 | 747 |
@@ -1707,7 +1707,7 @@ |
||
1707 | 1707 | { |
1708 | 1708 | // Avoid double separators and empty titled sections |
1709 | 1709 | $empty_section = true; |
1710 | - for ($j=$i+1; $j < count($context['theme_options']); $j++) |
|
1710 | + for ($j = $i + 1; $j < count($context['theme_options']); $j++) |
|
1711 | 1711 | { |
1712 | 1712 | // Found another separator, so we're done |
1713 | 1713 | if (!is_array($context['theme_options'][$j])) |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | AND a.is_read = 0' : '') . (!empty($alertIDs) ? ' |
263 | 263 | AND a.id_alert IN ({array_int:alertIDs})' : '') . ' |
264 | 264 | ORDER BY id_alert DESC' . (!empty($limit) ? ' |
265 | - LIMIT {int:limit}' : '') . (!empty($offset) ?' |
|
265 | + LIMIT {int:limit}' : '') . (!empty($offset) ? ' |
|
266 | 266 | OFFSET {int:offset}' : ''), |
267 | 267 | array( |
268 | 268 | 'id_member' => $memID, |
@@ -1101,20 +1101,20 @@ discard block |
||
1101 | 1101 | $context['posts'][$key]['quickbuttons'] = array( |
1102 | 1102 | 'reply' => array( |
1103 | 1103 | 'label' => $txt['reply'], |
1104 | - 'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'], |
|
1104 | + 'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'], |
|
1105 | 1105 | 'icon' => 'reply_button', |
1106 | 1106 | 'show' => $post['can_reply'] |
1107 | 1107 | ), |
1108 | 1108 | 'quote' => array( |
1109 | 1109 | 'label' => $txt['quote_action'], |
1110 | - 'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'].';quote='.$post['id'], |
|
1110 | + 'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id'], |
|
1111 | 1111 | 'icon' => 'quote', |
1112 | 1112 | 'show' => $post['can_quote'] |
1113 | 1113 | ), |
1114 | 1114 | 'remove' => array( |
1115 | 1115 | 'label' => $txt['remove'], |
1116 | - 'href' => $scripturl.'?action=deletemsg;msg='.$post['id'].';topic='.$post['topic'].';profile;u='.$context['member']['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'], |
|
1117 | - 'javascript' => 'data-confirm="'.$txt['remove_message'].'" class="you_sure"', |
|
1116 | + 'href' => $scripturl . '?action=deletemsg;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';profile;u=' . $context['member']['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
1117 | + 'javascript' => 'data-confirm="' . $txt['remove_message'] . '" class="you_sure"', |
|
1118 | 1118 | 'icon' => 'remove_button', |
1119 | 1119 | 'show' => $post['can_delete'] |
1120 | 1120 | ) |