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
Avoid page table query spam in HistoryPager due to lastLink()
[lhc/web/wiklou.git]
/
includes
/
actions
/
pagers
/
HistoryPager.php
diff --git
a/includes/actions/pagers/HistoryPager.php
b/includes/actions/pagers/HistoryPager.php
index
a59597f
..
d3a32d0
100644
(file)
--- a/
includes/actions/pagers/HistoryPager.php
+++ b/
includes/actions/pagers/HistoryPager.php
@@
-541,7
+541,7
@@
class HistoryPager extends ReverseChronologicalPager {
);
}
- $nextRev = new Revision( $next );
+ $nextRev = new Revision( $next
, 0, $this->getTitle()
);
if ( !$prevRev->userCan( Revision::DELETED_TEXT, $this->getUser() )
|| !$nextRev->userCan( Revision::DELETED_TEXT, $this->getUser() )