r90159 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90158‎ | r90159 | r90160 >
Date:21:17, 15 June 2011
Author:reedy
Status:ok
Tags:
Comment:
Define $dbr in r90148
Modified paths:
  • /trunk/extensions/CodeReview/backend/RepoStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/backend/RepoStats.php
@@ -85,6 +85,7 @@
8686 */
8787 private function getAuthorStatusCounts( $status ) {
8888 $array = array();
 89+ $dbr = wfGetDB( DB_SLAVE );
8990 $res = $dbr->select( 'code_rev',
9091 array( 'COUNT(*) AS revs', 'cr_author' ),
9192 array( 'cr_repo_id' => $this->repo->getId(), 'cr_status' => $status ),

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90148Refactor out code for getting number of revisions each author has for a certa...reedy20:44, 15 June 2011

Status & tagging log