From 049404ebdc887dc8101800a51be088d7c3f7c90d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 29 Jun 2011 17:18:06 +0000 Subject: [PATCH] Fix for r91076: forgot to change one instance of $useMaster to $database --- includes/SiteStats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 09b0fd06f6..9041757cd3 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -325,7 +325,7 @@ class SiteStatsInit { if ( $database instanceof DatabaseBase ) { $this->db = $database; } else { - $this->db = wfGetDB( $useMaster ? DB_MASTER : DB_SLAVE ); + $this->db = wfGetDB( $database ? DB_MASTER : DB_SLAVE ); } } -- 2.20.1