Group all logs in ERC, not an arbitrary subset
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Apr 2008 21:39:33 +0000 (21:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Apr 2008 21:39:33 +0000 (21:39 +0000)
includes/ChangesList.php
includes/DefaultSettings.php

index 13ca6cc..9889c6f 100644 (file)
@@ -441,8 +441,7 @@ class EnhancedChangesList extends ChangesList {
                        $clink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '', "rcid={$rc_id}" );
                // Log entries
                } else if( $rc_type == RC_LOG ) {
-                       global $wgRCTypeGroupedLogs;
-                       if( $rc_log_type && in_array($rc_log_type,$wgRCTypeGroupedLogs) ) {
+                       if( $rc_log_type ) {
                                $logtitle = SpecialPage::getTitleFor( 'Log', $rc_log_type );
                                $clink = '(' . $this->skin->makeKnownLinkObj( $logtitle, LogPage::logName($rc_log_type) ) . ')';
                        } else {
@@ -519,9 +518,8 @@ class EnhancedChangesList extends ChangesList {
                        # Use an @ character to prevent collision with page names
                        $this->rc_cache['@@' . ($this->rcMoveIndex++)] = array($rc);
                } else {
-                       global $wgRCTypeGroupedLogs;
-                       # Some logs are best grouped by type (block,rights)
-                       if( $rc_type == RC_LOG && in_array($rc_log_type,$wgRCTypeGroupedLogs) ){
+                       # Logs are grouped by type
+                       if( $rc_type == RC_LOG ){
                                $secureName = SpecialPage::getTitleFor( 'Log', $rc_log_type )->getPrefixedDBkey();
                        }
                        if( !isset( $this->rc_cache[$secureName] ) ) {
index b4b0fea..cf5206f 100644 (file)
@@ -1411,8 +1411,6 @@ $wgRCShowWatchingUsers                            = false; # UPO
 $wgPageShowWatchingUsers                       = false;
 /** Show the amount of changed characters in recent changes */
 $wgRCShowChangedSize                           = true;
-/** Logs that are grouped by log type, not page */
-$wgRCTypeGroupedLogs = array( 'block', 'rights' );
 
 /**
  * If the difference between the character counts of the text