From aa5bd3f47af8dde23435135e2f153b6f03596d07 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 29 Jan 2009 22:44:31 +0000 Subject: [PATCH] Abuse Filter changes designed for testing filters against real data: * Add searching and filtering functionality to the existing 'test' interface. * Add an 'examine' interface designed for testing filters against a previous change, selectable through the search interface in either the 'test' or the 'examine' view. * Minor enabling change in ChangesList core, to allow subclassing. --- includes/ChangesList.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 629211e2c0..1c6f4bdd20 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -347,6 +347,10 @@ class ChangesList { $classes = array_merge( $classes, $newClasses ); $s .= ' ' . $tagSummary; } + + protected function insertExtra( &$s, &$rc, &$classes ) { + ## Empty, used for subclassers to add anything special. + } } @@ -408,6 +412,9 @@ class OldChangesList extends ChangesList { $this->insertTags( $s, $rc, $classes ); # Rollback $this->insertRollback( $s, $rc ); + # For subclasses + $this->insertExtra( $s, $rc, $classes ); + # Mark revision as deleted if so if( !$rc->mAttribs['rc_log_type'] && $this->isDeleted($rc,Revision::DELETED_TEXT) ) { $s .= ' ' . wfMsgHtml( 'deletedrev' ) . ''; -- 2.20.1