|
@@ -93,14 +93,14 @@ discard block |
|
|
block discarded – undo |
93
|
93
|
), |
94
|
94
|
'ignore' => array( |
95
|
95
|
'label' => $report['ignore'] ? $txt['mc_reportedp_unignore'] : $txt['mc_reportedp_ignore'], |
96
|
|
- 'href' => $scripturl.'?action=moderate;area=reported'.$context['report_type'].';sa=handle;ignore='.(int)!$report['ignore'].';rid='.$report['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-ignore_token_var'].'='.$context['mod-report-ignore_token'], |
|
96
|
+ 'href' => $scripturl . '?action=moderate;area=reported' . $context['report_type'] . ';sa=handle;ignore=' . (int) !$report['ignore'] . ';rid=' . $report['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-ignore_token_var'] . '=' . $context['mod-report-ignore_token'], |
97
|
97
|
'javascript' => !$report['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : '', |
98
|
98
|
'class' => 'you_sure', |
99
|
99
|
'icon' => 'ignore' |
100
|
100
|
), |
101
|
101
|
'close' => array( |
102
|
102
|
'label' => $context['view_closed'] ? $txt['mc_reportedp_open'] : $txt['mc_reportedp_close'], |
103
|
|
- 'href' => $scripturl.'?action=moderate;area=reported'.$context['report_type'].';sa=handle;closed='.(int)!$report['closed'].';rid='.$report['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-closed_token_var'].'='.$context['mod-report-closed_token'], |
|
103
|
+ 'href' => $scripturl . '?action=moderate;area=reported' . $context['report_type'] . ';sa=handle;closed=' . (int) !$report['closed'] . ';rid=' . $report['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-closed_token_var'] . '=' . $context['mod-report-closed_token'], |
104
|
104
|
'icon' => $context['view_closed'] ? 'folder' : 'close', |
105
|
105
|
), |
106
|
106
|
); |
|
@@ -109,8 +109,8 @@ discard block |
|
|
block discarded – undo |
109
|
109
|
if ($context['report_type'] == 'posts') |
110
|
110
|
$context['reports'][$key]['quickbuttons']['delete'] = array( |
111
|
111
|
'label' => $txt['mc_reportedp_delete'], |
112
|
|
- 'href' => $scripturl.'?action=deletemsg;topic='.$report['topic']['id'].'.0;msg='.$report['topic']['id_msg'].';modcenter;'.$context['session_var'].'='.$context['session_id'], |
113
|
|
- 'javascript' => 'data-confirm="'.$txt['mc_reportedp_delete_confirm'].'"', |
|
112
|
+ 'href' => $scripturl . '?action=deletemsg;topic=' . $report['topic']['id'] . '.0;msg=' . $report['topic']['id_msg'] . ';modcenter;' . $context['session_var'] . '=' . $context['session_id'], |
|
113
|
+ 'javascript' => 'data-confirm="' . $txt['mc_reportedp_delete_confirm'] . '"', |
114
|
114
|
'class' => 'you_sure', |
115
|
115
|
'icon' => 'delete', |
116
|
116
|
'show' => !$report['closed'] && (is_array($context['report_remove_any_boards']) && in_array($report['topic']['id_board'], $context['report_remove_any_boards'])) |
|
@@ -118,9 +118,9 @@ discard block |
|
|
block discarded – undo |
118
|
118
|
|
119
|
119
|
// Ban reported member/post author link |
120
|
120
|
if ($context['report_type'] == 'members') |
121
|
|
- $ban_link = $scripturl.'?action=admin;area=ban;sa=add;u='.$report['user']['id'].';'.$context['session_var'].'='.$context['session_id']; |
|
121
|
+ $ban_link = $scripturl . '?action=admin;area=ban;sa=add;u=' . $report['user']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']; |
122
|
122
|
else |
123
|
|
- $ban_link = $scripturl.'?action=admin;area=ban;sa=add'.(!empty($report['author']['id']) ? ';u='.$report['author']['id'] : ';msg='.$report['topic']['id_msg']).';'.$context['session_var'].'='.$context['session_id']; |
|
123
|
+ $ban_link = $scripturl . '?action=admin;area=ban;sa=add' . (!empty($report['author']['id']) ? ';u=' . $report['author']['id'] : ';msg=' . $report['topic']['id_msg']) . ';' . $context['session_var'] . '=' . $context['session_id']; |
124
|
124
|
|
125
|
125
|
$context['reports'][$key]['quickbuttons'] += array( |
126
|
126
|
'ban' => array( |
|
@@ -131,7 +131,7 @@ discard block |
|
|
block discarded – undo |
131
|
131
|
), |
132
|
132
|
'quickmod' => array( |
133
|
133
|
'class' => 'inline_mod_check', |
134
|
|
- 'content' => '<input type="checkbox" name="close[]" value="'.$report['id'].'">', |
|
134
|
+ 'content' => '<input type="checkbox" name="close[]" value="' . $report['id'] . '">', |
135
|
135
|
'show' => !$context['view_closed'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 |
136
|
136
|
) |
137
|
137
|
); |