From: Alexandre Emsenhuber Date: Wed, 29 Jun 2011 17:18:06 +0000 (+0000) Subject: Fix for r91076: forgot to change one instance of $useMaster to $database X-Git-Tag: 1.31.0-rc.0~29193 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=049404ebdc887dc8101800a51be088d7c3f7c90d;p=lhc%2Fweb%2Fwiklou.git Fix for r91076: forgot to change one instance of $useMaster to $database --- 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 ); } }