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:
18e147f
)
wfGetDB() needs a parameter.
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 21 Sep 2008 08:44:20 +0000
(08:44 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 21 Sep 2008 08:44:20 +0000
(08:44 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
7b41a08
..
eeff834
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-2137,7
+2137,7
@@
class Article {
* @return int approximate revision count
*/
function estimateRevisionCount() {
- $dbr = wfGetDB();
+ $dbr = wfGetDB(
DB_SLAVE
);
// For an exact count...
//return $dbr->selectField( 'revision', 'COUNT(*)',
// array( 'rev_page' => $this->getId() ), __METHOD__ );