Fix #9973 : "Changed Size" still shows on enhanced recent changes for "collapsed...
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 20 May 2007 11:51:46 +0000 (11:51 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 20 May 2007 11:51:46 +0000 (11:51 +0000)
RELEASE-NOTES
includes/ChangesList.php

index 2933f90..7a1a626 100644 (file)
@@ -73,6 +73,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   of fragments during the normalisation process
 * (bug 7989) RSS feeds content now use black text when using white background.
 * (bug 9971) Typo in a french language message.
+* (bug 9973) Changed size was shown in advanced recentchanges collapsible items
+  with $wgRCShowChangedSized = false.
 
 == MediaWiki API changes since 1.10 ==
 
index bc14157..751e122 100644 (file)
@@ -497,18 +497,19 @@ class EnhancedChangesList extends ChangesList {
 
                        $r .= ') . . ';
 
-                       # Character difference
-                       $chardiff = $rcObj->getCharacterDifference( $block[ count( $block ) - 1 ]->mAttribs['rc_old_len'],
-                                       $block[0]->mAttribs['rc_new_len'] );
-                       if( $chardiff == '' ) {
-                               $r .= ' (';
-                       } else {
-                               $r .= ' ' . $chardiff. ' . . (';
-                       }
-                       
+                       if( $wgRCShowChangedSize ) {
+                               # Character difference
+                               $chardiff = $rcObj->getCharacterDifference( $block[ count( $block ) - 1 ]->mAttribs['rc_old_len'],
+                                               $block[0]->mAttribs['rc_new_len'] );
+                               if( $chardiff == '' ) {
+                                       $r .= ' (';
+                               } else {
+                                       $r .= ' ' . $chardiff. ' . . ';
+                               }
+                       }       
 
                        # History
-                       $r .= $this->skin->makeKnownLinkObj( $block[0]->getTitle(),
+                       $r .= '(' . $this->skin->makeKnownLinkObj( $block[0]->getTitle(),
                                $this->message['history'], $curIdEq.'&action=history' );
                        $r .= ')';
                }