From 89870efc549169eb6c2094e162027e92060e07d6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 14 Sep 2009 17:09:13 +0000 Subject: [PATCH] bug 18472 Suppression log filtered by "offender", as Oversight log can be --- includes/LogEventsList.php | 10 +++ includes/specials/SpecialLog.php | 12 +++- includes/specials/SpecialRevisiondelete.php | 65 +++++++++++++++-- languages/messages/MessagesEn.php | 1 + maintenance/language/messages.inc | 1 + maintenance/populateLogSearch.php | 77 ++++++++++++++++----- 6 files changed, 143 insertions(+), 23 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index e7e4dbe84d..7c209f9a24 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -94,6 +94,7 @@ class LogEventsList { $html .= $this->getTypeMenu( $types ) . "\n"; $html .= $this->getUserInput( $user ) . "\n"; $html .= $this->getTitleInput( $page ) . "\n"; + $html .= $this->getExtraInputs( $types ) . "\n"; // Title pattern, if allowed if (!$wgMiserMode) { @@ -238,6 +239,15 @@ class LogEventsList { Xml::checkLabel( wfMsg( 'log-title-wildcard' ), 'pattern', 'pattern', $pattern ) . ''; } + + private function getExtraInputs( $types ) { + global $wgRequest; + if( count($types) == 1 && $types[0] == 'suppress' ) { + return Xml::inputLabel( wfMsg('revdelete-offender'), 'offender', + 'mw-log-offender', 20, $wgRequest->getVal('offender') ); + } + return ''; + } public function beginLogEventsList() { return "