Index: trunk/phase3/includes/diff/DifferenceInterface.php |
— | — | @@ -812,10 +812,21 @@ |
813 | 813 | } |
814 | 814 | |
815 | 815 | $n = $this->mTitle->countRevisionsBetween( $oldid, $newid ); |
816 | | - if ( !$n ) |
817 | | - return ''; |
818 | | - |
819 | | - return wfMsgExt( 'diff-multi', array( 'parseinline' ), $n ); |
| 816 | + if ( !$n ) { |
| 817 | + 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 | + } |
820 | 831 | } |
821 | 832 | |
822 | 833 | |
Index: trunk/phase3/includes/db/DatabaseType.php |
— | — | @@ -1,15 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Base interface for all DBMS-specific code. |
5 | | - * |
6 | | - * @file |
7 | | - * @ingroup Database |
8 | | - */ |
9 | | - |
10 | | -/** |
11 | 4 | * Base interface for all DBMS-specific code. At a bare minimum, all of the |
12 | 5 | * following must be implemented to support MediaWiki |
13 | 6 | * |
| 7 | + * @file |
14 | 8 | * @ingroup Database |
15 | 9 | */ |
16 | 10 | interface DatabaseType { |