@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | AND a.is_read = 0' : '') . (!empty($alertIDs) ? ' |
262 | 262 | AND a.id_alert IN ({array_int:alertIDs})' : '') . ' |
263 | 263 | ORDER BY id_alert DESC' . (!empty($limit) ? ' |
264 | - LIMIT {int:limit}' : '') . (!empty($offset) ?' |
|
264 | + LIMIT {int:limit}' : '') . (!empty($offset) ? ' |
|
265 | 265 | OFFSET {int:offset}' : ''), |
266 | 266 | array( |
267 | 267 | 'id_member' => $memID, |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | call_integration_hook('integrate_fetch_alerts', array(&$alerts, &$formats)); |
360 | 360 | |
361 | 361 | // Substitute $scripturl into the link formats. (Done here to make life easier for hooked mods.) |
362 | - $formats = array_map(function ($format) use ($scripturl) { |
|
362 | + $formats = array_map(function($format) use ($scripturl) { |
|
363 | 363 | $format['link'] = str_replace('{scripturl}', $scripturl, $format['link']); |
364 | 364 | $format['text'] = str_replace('{scripturl}', $scripturl, $format['text']); |
365 | 365 | |
@@ -1166,20 +1166,20 @@ discard block |
||
1166 | 1166 | $context['posts'][$key]['quickbuttons'] = array( |
1167 | 1167 | 'reply' => array( |
1168 | 1168 | 'label' => $txt['reply'], |
1169 | - 'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'], |
|
1169 | + 'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'], |
|
1170 | 1170 | 'icon' => 'reply_button', |
1171 | 1171 | 'show' => $post['can_reply'] |
1172 | 1172 | ), |
1173 | 1173 | 'quote' => array( |
1174 | 1174 | 'label' => $txt['quote_action'], |
1175 | - 'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'].';quote='.$post['id'], |
|
1175 | + 'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id'], |
|
1176 | 1176 | 'icon' => 'quote', |
1177 | 1177 | 'show' => $post['can_quote'] |
1178 | 1178 | ), |
1179 | 1179 | 'remove' => array( |
1180 | 1180 | 'label' => $txt['remove'], |
1181 | - 'href' => $scripturl.'?action=deletemsg;msg='.$post['id'].';topic='.$post['topic'].';profile;u='.$context['member']['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'], |
|
1182 | - 'javascript' => 'data-confirm="'.$txt['remove_message'].'"', |
|
1181 | + 'href' => $scripturl . '?action=deletemsg;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';profile;u=' . $context['member']['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'], |
|
1182 | + 'javascript' => 'data-confirm="' . $txt['remove_message'] . '"', |
|
1183 | 1183 | 'class' => 'you_sure', |
1184 | 1184 | 'icon' => 'remove_button', |
1185 | 1185 | 'show' => $post['can_delete'] |
@@ -359,7 +359,8 @@ |
||
359 | 359 | call_integration_hook('integrate_fetch_alerts', array(&$alerts, &$formats)); |
360 | 360 | |
361 | 361 | // Substitute $scripturl into the link formats. (Done here to make life easier for hooked mods.) |
362 | - $formats = array_map(function ($format) use ($scripturl) { |
|
362 | + $formats = array_map(function ($format) use ($scripturl) |
|
363 | + { |
|
363 | 364 | $format['link'] = str_replace('{scripturl}', $scripturl, $format['link']); |
364 | 365 | $format['text'] = str_replace('{scripturl}', $scripturl, $format['text']); |
365 | 366 |