From: Andrew Garrett Date: Thu, 29 Jan 2009 22:44:31 +0000 (+0000) Subject: Abuse Filter changes designed for testing filters against real data: X-Git-Tag: 1.31.0-rc.0~43125 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=aa5bd3f47af8dde23435135e2f153b6f03596d07;p=lhc%2Fweb%2Fwiklou.git 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. --- 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' ) . '';