Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6854
diff-patch.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:08 PM
2014-11-21 23:08:37 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
diff-patch.diff
View Options
Index: includes/diff/DifferenceInterface.php
===================================================================
--- includes/diff/DifferenceInterface.php (revision 68310)
+++ includes/diff/DifferenceInterface.php (working copy)
@@ -790,10 +790,19 @@
}
$n = $this->mTitle->countRevisionsBetween( $oldid, $newid );
- if ( !$n )
- return '';
-
- return wfMsgExt( 'diff-multi', array( 'parseinline' ), $n );
+ if ( !$n ) {
+ return '';
+ } else {
+ $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__
+ );
+ return wfMsgExt( 'diff-multi', array( 'parseinline' ), $n, $dbr->numRows( $res ) );
+ }
}
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (revision 68310)
+++ languages/messages/MessagesEn.php (working copy)
@@ -1613,7 +1613,7 @@
'compareselectedversions' => 'Compare selected revisions',
'showhideselectedversions' => 'Show/hide selected revisions',
'editundo' => 'undo',
-'diff-multi' => '({{PLURAL:$1|One intermediate revision|$1 intermediate revisions}} not shown)',
+'diff-multi' => '({{PLURAL:$1|One intermediate revision|$1 intermediate revisions}} by {{PLURAL:$2|one user|$2 users}} not shown)',
# Search results
'search-summary' => '', # do not translate or duplicate this message to other languages
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6392
Default Alt Text
diff-patch.diff (1 KB)
Attached To
Mode
T26007: MediaWiki:Diff-multi should mention the number of users having edited intermediate revisions
Attached
Detach File
Event Timeline
Log In to Comment