dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab6083
)
force index, per domas
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 10 Apr 2008 17:55:12 +0000
(17:55 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 10 Apr 2008 17:55:12 +0000
(17:55 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
673ee16
..
73b7ea5
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-2852,6
+2852,7
@@
class Title {
/**
* Get the number of revisions between the given revision IDs.
+ * Used for diffs and other things that really need it.
*
* @param integer $old Revision ID.
* @param integer $new Revision ID.
@@
-2863,7
+2864,8
@@
class Title {
'rev_page = ' . intval( $this->getArticleId() ) .
' AND rev_id > ' . intval( $old ) .
' AND rev_id < ' . intval( $new ),
- __METHOD__ );
+ __METHOD__,
+ array( 'USE INDEX' => 'PRIMARY' ) );
}
/**