Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -90,6 +90,7 @@ |
91 | 91 | for an IP address redirects to the contributions list for that IP |
92 | 92 | * (bug 8859) Database::update should take array of tables too |
93 | 93 | * (bug 19698) Inverse selection for Special:Contributions |
| 94 | +* (bug 24037) Add byte length of revision to Special:Contributions |
94 | 95 | |
95 | 96 | === Bug fixes in 1.19 === |
96 | 97 | * $wgUploadNavigationUrl should be used for file redlinks if |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -712,6 +712,12 @@ |
713 | 713 | $mflag = ''; |
714 | 714 | } |
715 | 715 | |
| 716 | + if ( !is_null( $rev->getSize() ) && !$rev->isDeleted( Revision::DELETED_TEXT ) ) { |
| 717 | + $mSize = $this->getSkin()->formatRevisionSize( $rev->getSize() ); |
| 718 | + } else { |
| 719 | + $mSize = ''; |
| 720 | + } |
| 721 | + |
716 | 722 | // Don't show useless link to people who cannot hide revisions |
717 | 723 | $canHide = $user->isAllowed( 'deleterevision' ); |
718 | 724 | if( $canHide || ($rev->getVisibility() && $user->isAllowed('deletedhistory')) ) { |
— | — | @@ -732,7 +738,7 @@ |
733 | 739 | } |
734 | 740 | |
735 | 741 | $diffHistLinks = '(' . $difftext . $this->messages['pipe-separator'] . $histlink . ')'; |
736 | | - $ret = "{$del}{$d} {$diffHistLinks}{$chardiff}{$nflag}{$mflag} {$link}{$userlink} {$comment} {$topmarktext}"; |
| 742 | + $ret = "{$del}{$d} {$diffHistLinks}{$chardiff}{$nflag}{$mflag} {$link}{$userlink} {$mSize} {$comment} {$topmarktext}"; |
737 | 743 | |
738 | 744 | # Denote if username is redacted for this edit |
739 | 745 | if( $rev->isDeleted( Revision::DELETED_USER ) ) { |