Let's do this again, without all the breakages... (bug 15925) Properly bold rc bytes...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 15 Oct 2008 20:38:50 +0000 (20:38 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 15 Oct 2008 20:38:50 +0000 (20:38 +0000)
CREDITS
RELEASE-NOTES
includes/DefaultSettings.php
includes/RecentChange.php

diff --git a/CREDITS b/CREDITS
index c91eb79..1ff4746 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -46,6 +46,8 @@ following names for their contribution to the product.
 * Brad Jorsch
 * Daniel Arnold
 * Danny B.
+* FunPika
+* Happy-melon
 * Jeremy Baron
 * Juliano F. Ravasi
 * Louperivois
index 5634216..1e15a71 100644 (file)
@@ -48,6 +48,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   whitelist on or off.
 * Added $wgRenderHashAppend to append some string to the parser cache and the
   sitenotice cache keys.
+* $wgRCChangedSizeThreshold is now a positive integer by default, 
 
 === Migrated extensions ===
 The following extensions are migrated into MediaWiki 1.14:
@@ -264,6 +265,9 @@ The following extensions are migrated into MediaWiki 1.14:
 * (bug 15846) Categories "leak" from older revisions in certain circumstances
 * (bug 15928) Special pages dropdown should be inline in non-MonoBook skins
 * (bug 14178) Some uses of UserLoadFromSession hook cause segfault 
+* (bug 15925) Postitive bytes added on recentchanges and watchlists are now bolded
+  if above the threshold, previously it only worked for negatives
+
 
 === API changes in 1.14 ===
 
index 123e23a..88d2727 100644 (file)
@@ -1468,7 +1468,7 @@ $wgRCShowChangedSize                              = true;
  * before and after the edit is below that value, the value will be
  * highlighted on the RC page.
  */
-$wgRCChangedSizeThreshold                      = -500;
+$wgRCChangedSizeThreshold                      = 500;
 
 /**
  * Show "Updated (since my last visit)" marker in RC view, watchlist and history
index 93de943..e388758 100644 (file)
@@ -686,14 +686,20 @@ class RecentChange
                $formatedSize = wfMsgExt( 'rc-change-size', array( 'parsemag', 'escape'),
                        $wgLang->formatNum($szdiff) );
 
-               if( $szdiff < $wgRCChangedSizeThreshold ) {
-                       return '<strong class=\'mw-plusminus-neg\'>(' . $formatedSize . ')</strong>';
-               } elseif( $szdiff === 0 ) {
-                       return '<span class=\'mw-plusminus-null\'>(' . $formatedSize . ')</span>';
+               
+               if( abs( $szdiff ) > abs( $wgRCChangedSizeThreshold ) ) {
+                       $tag = 'strong';
+               } 
+               else{
+                   $tag = 'span';
+               }
+
+               if( $szdiff === 0 ) {
+                       return "<$tag class='mw-plusminus-null'>($formatedSize)</$tag>";
                } elseif( $szdiff > 0 ) {
-                       return '<span class=\'mw-plusminus-pos\'>(+' . $formatedSize . ')</span>';
-               } else {
-                       return '<span class=\'mw-plusminus-neg\'>(' . $formatedSize . ')</span>';
+                       return "<$tag class='mw-plusminus-pos'>(+$formatedSize)</$tag>";
+           } else {
+                       return "<$tag class='mw-plusminus-neg'>($formatedSize)</$tag>";
                }
        }
 }