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:
57073ee
)
Fix MySQL-centrism in comment
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 8 Dec 2008 23:10:24 +0000
(23:10 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 8 Dec 2008 23:10:24 +0000
(23:10 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
792f475
..
9e52e5a
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-2979,7
+2979,8
@@
class Title {
*/
public function pageCond() {
if( $this->mArticleID > 0 ) {
- return array( 'page_id' => $this->mArticleID ); // PK avoids secondary lookups
+ // PK avoids secondary lookups in InnoDB, shouldn't hurt other DBs
+ return array( 'page_id' => $this->mArticleID );
} else {
return array( 'page_namespace' => $this->mNamespace, 'page_title' => $this->mDbkeyform );
}