Index: trunk/extensions/AbuseFilter/SpecialAbuseLog.php |
— | — | @@ -38,6 +38,11 @@ |
39 | 39 | |
40 | 40 | $detailsid = $wgRequest->getIntOrNull( 'details' ); |
41 | 41 | $hideid = $wgRequest->getIntOrNull( 'hide' ); |
| 42 | + |
| 43 | + if ( $parameter ) { |
| 44 | + $detailsid = $parameter; |
| 45 | + } |
| 46 | + |
42 | 47 | if ( $detailsid ) { |
43 | 48 | $this->showDetails( $detailsid ); |
44 | 49 | } elseif ( $hideid ) { |
— | — | @@ -156,6 +161,11 @@ |
157 | 162 | array( 'afl_id' => $logid ), |
158 | 163 | __METHOD__ |
159 | 164 | ); |
| 165 | + |
| 166 | + $logPage = new LogPage( 'suppress' ); |
| 167 | + $action = $fields['hidden'] ? 'hide-afl' : 'unhide-afl'; |
| 168 | + |
| 169 | + $logPage->addEntry( $action, $this->getTitle( $logid ), $fields['reason'] ); |
160 | 170 | |
161 | 171 | $wgOut->redirect( SpecialPage::getTitleFor( 'AbuseLog' )->getFullURL() ); |
162 | 172 | |
— | — | @@ -375,9 +385,8 @@ |
376 | 386 | if ( self::canSeeDetails() ) { |
377 | 387 | $examineTitle = SpecialPage::getTitleFor( 'AbuseFilter', 'examine/log/' . $row->afl_id ); |
378 | 388 | $detailsLink = $sk->makeKnownLinkObj( |
379 | | - $this->getTitle(), |
380 | | - wfMsg( 'abusefilter-log-detailslink' ), |
381 | | - 'details=' . $row->afl_id |
| 389 | + $this->getTitle($row->afl_id), |
| 390 | + wfMsg( 'abusefilter-log-detailslink' ) |
382 | 391 | ); |
383 | 392 | $examineLink = $sk->link( |
384 | 393 | $examineTitle, |
Index: trunk/extensions/AbuseFilter/AbuseFilter.php |
— | — | @@ -85,6 +85,8 @@ |
86 | 86 | $wgLogNames['abusefilter'] = 'abusefilter-log-name'; |
87 | 87 | $wgLogHeaders['abusefilter'] = 'abusefilter-log-header'; |
88 | 88 | $wgLogActionsHandlers['abusefilter/modify'] = array( 'AbuseFilter', 'modifyActionText' ); |
| 89 | +$wgLogActions['suppress/hide-afl'] = 'abusefilter-logentry-suppress'; |
| 90 | +$wgLogActions['suppress/unhide-afl'] = 'abusefilter-logentry-unsuppress'; |
89 | 91 | |
90 | 92 | $wgAbuseFilterAvailableActions = array( 'flag', 'throttle', 'warn', 'disallow', 'blockautopromote', 'block', 'degroup', 'tag' ); |
91 | 93 | |
Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php |
— | — | @@ -114,6 +114,8 @@ |
115 | 115 | 'abusefilter-log-hide-reason' => 'Reason:', |
116 | 116 | 'abusefilter-log-hide-forbidden' => 'You do not have permission to hide |
117 | 117 | abuse log entries.', |
| 118 | + 'abusefilter-logentry-suppress' => 'hid [[$1]]', |
| 119 | + 'abusefilter-logentry-unsuppress' => 'unhid [[$1]]', |
118 | 120 | |
119 | 121 | // Abuse filter management |
120 | 122 | 'abusefilter-management' => 'Abuse filter management', |