r91080 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91079‎ | r91080 | r91081 >
Date:17:18, 29 June 2011
Author:ialex
Status:ok
Tags:
Comment:
Fix for r91076: forgot to change one instance of $useMaster to $database
Modified paths:
  • /trunk/phase3/includes/SiteStats.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SiteStats.php
@@ -325,7 +325,7 @@
326326 if ( $database instanceof DatabaseBase ) {
327327 $this->db = $database;
328328 } else {
329 - $this->db = wfGetDB( $useMaster ? DB_MASTER : DB_SLAVE );
 329+ $this->db = wfGetDB( $database ? DB_MASTER : DB_SLAVE );
330330 }
331331 }
332332

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91076Per Platonides, follow-up r72842: pass the db connection to SiteStatsInit::do...ialex15:39, 29 June 2011

Status & tagging log