Fix for r91076: forgot to change one instance of $useMaster to $database
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 29 Jun 2011 17:18:06 +0000 (17:18 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 29 Jun 2011 17:18:06 +0000 (17:18 +0000)
includes/SiteStats.php

index 09b0fd0..9041757 100644 (file)
@@ -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 );
                }
        }