Fix stomach-churning case of edititis in r41350: made optional.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 10 Oct 2008 01:54:04 +0000 (01:54 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 10 Oct 2008 01:54:04 +0000 (01:54 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/specials/SpecialListusers.php

index 4402fb1..00256b8 100644 (file)
@@ -162,6 +162,9 @@ The following extensions are migrated into MediaWiki 1.14:
 * (bug 44) The {{ns:}} core parser function now also accepts localized namespace
   names and aliases; also, its output now uses spaces instead of underscores to
   match the behavior of the {{NAMESPACE}} magic word
+* Added the ability to display user edit counts in Special:ListUsers. Off by 
+  default, enabled with $wgEdititis = true (named after the medical condition 
+  marked by unhealthy obsession with edit counts).
 
 === Bug fixes in 1.14 ===
 
index 912fb81..a31329c 100644 (file)
@@ -3463,9 +3463,14 @@ $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );
  */
 $wgMajorSiteNoticeID = 1;
 
+/**
+ * Display user edit counts in various prominent places.
+ */
+$wgEdititis = false;
+
 /**
 * Enable the UniversalEditButton for browsers that support it
 * (currently only Firefox with an extension)
 * See http://universaleditbutton.org for more background information
 */
-$wgUniversalEditButton = true;
\ No newline at end of file
+$wgUniversalEditButton = true;
index 5d8222b..77c9ca1 100644 (file)
@@ -123,10 +123,16 @@ class UsersPager extends AlphabeticPager {
                }
 
                $item = wfSpecialList( $name, $groups );
-               $editCount = $wgLang->formatNum( $row->edits );
-               $edits = wfMsgExt( 'usereditcount', 'parsemag', $editCount );
+
+               global $wgEdititis;
+               if ( $wgEdititis ) {
+                       $editCount = $wgLang->formatNum( $row->edits );
+                       $edits = ' [' . wfMsgExt( 'usereditcount', 'parsemag', $editCount ) . ']';
+               } else {
+                       $edits = '';
+               }
                wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) );
-               return "<li>{$item} [$edits]</li>";
+               return "<li>{$item}{$edits}</li>";
        }
 
        function getBody() {