Fix a conflict(?) in Special:Contributions in r97658.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 21 Sep 2011 05:52:55 +0000 (05:52 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 21 Sep 2011 05:52:55 +0000 (05:52 +0000)
includes/specials/SpecialContributions.php

index a9b7bf5..e1ed54a 100644 (file)
@@ -641,6 +641,13 @@ class ContribsPager extends ReverseChronologicalPager {
                        array( 'action' => 'history' )
                );
 
+               if ( isset( $this->mParentLens[$row->rev_parent_id] ) ) {
+                       $chardiff = ' . . ' . ChangesList::showCharacterDifference(
+                               $this->mParentLens[$row->rev_parent_id], $row->rev_len ) . ' . . ';
+               } else {
+                       $chardiff = '';
+               }
+
                $comment = $this->getLang()->getDirMark() . Linker::revComment( $rev, false, true );
                $date = $this->getLang()->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true );
                if( $rev->userCan( Revision::DELETED_TEXT ) ) {