From: Andrew Garrett Date: Wed, 28 Jan 2009 23:54:41 +0000 (+0000) Subject: Add Special:AbuseFilter/test, which allows (trusted for now, due to DoS potential... X-Git-Tag: 1.31.0-rc.0~43153 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=534621729c2c1dff66fbf5353b1711a1a1ab0160;p=lhc%2Fweb%2Fwiklou.git Add Special:AbuseFilter/test, which allows (trusted for now, due to DoS potential) users to enter a filter, and have it checked against the last 100 RecentChanges items while-u-wait. Some related cleanup to change tagging in ChangesList. --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 66e35cfad2..cc9c358d76 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -340,6 +340,9 @@ class ChangesList { } protected function insertTags( &$s, &$rc, &$classes ) { + if ( empty($rc->mAttribs['ts_tags']) ) + return; + list($tagSummary, $newClasses) = ChangeTags::formatSummaryRow( $rc->mAttribs['ts_tags'], 'changeslist' ); $classes = array_merge( $classes, $newClasses ); $s .= ' ' . $tagSummary;