From 50899edfb750b3b44f9fe72f51c9ef809b1ae423 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 21 Sep 2008 08:44:20 +0000 Subject: [PATCH] wfGetDB() needs a parameter. --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 7b41a0876d..eeff834474 100644 --- 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__ ); -- 2.20.1