Comment fix
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Sep 2010 11:34:34 +0000 (11:34 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Sep 2010 11:34:34 +0000 (11:34 +0000)
includes/db/DatabaseType.php
includes/diff/DifferenceInterface.php

index d015424..d4d145f 100644 (file)
@@ -1,15 +1,9 @@
 <?php
-/**
- * Base interface for all DBMS-specific code.
- *
- * @file
- * @ingroup Database
- */
-
 /**
  * Base interface for all DBMS-specific code. At a bare minimum, all of the
  * following must be implemented to support MediaWiki
  *
+ * @file
  * @ingroup Database
  */
 interface DatabaseType {
index 76118a3..7ec7626 100644 (file)
@@ -812,10 +812,21 @@ CONTROL;
                }
 
                $n = $this->mTitle->countRevisionsBetween( $oldid, $newid );
-               if ( !$n )
-               return '';
-
-               return wfMsgExt( 'diff-multi', array( 'parseinline' ), $n );
+               if ( !$n ) {
+                       return '';
+               } else {
+                       global $wgLang;
+                       $dbr = wfGetDB( DB_SLAVE );
+                       $res = $dbr->select( 'revision', 'DISTINCT rev_user_text',
+                               array(
+                                       'rev_page = ' . $this->mOldRev->getPage(),
+                                       'rev_id > ' . $this->mOldRev->getId(),
+                                       'rev_id < ' . $this->mNewRev->getId()
+                               ), __METHOD__, array( 'LIMIT' => 1 )
+                       );
+                       return wfMsgExt( 'diff-multi', array( 'parseinline' ), $wgLang->formatNum( $n ),
+                               $wgLang->formatNum( $dbr->numRows( $res ) ) );
+               }
        }