r87822 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87821‎ | r87822 | r87823 >
Date:14:29, 10 May 2011
Author:ashley
Status:deferred
Tags:
Comment:
NumberOfWikis: remove $wgSharedDB, we don't need it because wiki_list is in $wgSharedTables
Modified paths:
  • /trunk/extensions/NumberOfWikis/NumberOfWikis.php (modified) (history)

Diff [purge]

Index: trunk/extensions/NumberOfWikis/NumberOfWikis.php
@@ -52,8 +52,7 @@
5353 $ret = $data;
5454 } else {
5555 // Not cached → have to fetch it from the database
56 - global $wgSharedDB;
57 - $dbr = wfGetDB( DB_SLAVE, array(), $wgSharedDB );
 56+ $dbr = wfGetDB( DB_SLAVE );
5857 $res = $dbr->select(
5958 'wiki_list',
6059 'COUNT(*) AS count',

Status & tagging log