r72529 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72528‎ | r72529 | r72530 >
Date:11:37, 7 September 2010
Author:demon
Status:ok
Tags:
Comment:
Partial revert r72527, unrelated/unfinished changes
Modified paths:
  • /trunk/phase3/includes/diff/DifferenceInterface.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/diff/DifferenceInterface.php
@@ -812,21 +812,10 @@
813813 }
814814
815815 $n = $this->mTitle->countRevisionsBetween( $oldid, $newid );
816 - if ( !$n ) {
 816+ if ( !$n )
817817 return '';
818 - } else {
819 - global $wgLang;
820 - $dbr = wfGetDB( DB_SLAVE );
821 - $res = $dbr->select( 'revision', 'DISTINCT rev_user_text',
822 - array(
823 - 'rev_page = ' . $this->mOldRev->getPage(),
824 - 'rev_id > ' . $this->mOldRev->getId(),
825 - 'rev_id < ' . $this->mNewRev->getId()
826 - ), __METHOD__, array( 'LIMIT' => 1 )
827 - );
828 - return wfMsgExt( 'diff-multi', array( 'parseinline' ), $wgLang->formatNum( $n ),
829 - $wgLang->formatNum( $dbr->numRows( $res ) ) );
830 - }
 818+
 819+ return wfMsgExt( 'diff-multi', array( 'parseinline' ), $n );
831820 }
832821
833822

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72527Comment fixdemon11:34, 7 September 2010

Status & tagging log