dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ContribsPager: Batch page existence lookup for IP range contributions
[lhc/web/wiklou.git]
/
includes
/
specials
/
pagers
/
ContribsPager.php
diff --git
a/includes/specials/pagers/ContribsPager.php
b/includes/specials/pagers/ContribsPager.php
index
4296b78
..
31ea810
100644
(file)
--- a/
includes/specials/pagers/ContribsPager.php
+++ b/
includes/specials/pagers/ContribsPager.php
@@
-394,6
+394,9
@@
class ContribsPager extends RangeChronologicalPager {
if ( $this->contribs === 'newbie' ) { // multiple users
$batch->add( NS_USER, $row->user_name );
$batch->add( NS_USER_TALK, $row->user_name );
if ( $this->contribs === 'newbie' ) { // multiple users
$batch->add( NS_USER, $row->user_name );
$batch->add( NS_USER_TALK, $row->user_name );
+ } elseif ( $this->isQueryableRange( $this->target ) ) {
+ // If this is an IP range, batch the IP's talk page
+ $batch->add( NS_USER_TALK, $row->rev_user_text );
}
$batch->add( $row->page_namespace, $row->page_title );
}
}
$batch->add( $row->page_namespace, $row->page_title );
}