Get rid of the last (I think) php4-style calls to wfGetDB()

This commit is contained in:
Chad Horohoe 2010-02-13 23:03:40 +00:00
parent 1983488322
commit ab53469680
Notes: Raimond Spekking 2010-04-07 18:54:28 +00:00

View file

@ -89,7 +89,7 @@ class Editcount extends IncludableSpecialPage {
$fname = 'Editcount::editsByNs';
$nscount = array();
$dbr =& wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select(
array( 'user', 'revision', 'page' ),
array( 'page_namespace', 'COUNT(*) as count' ),
@ -120,7 +120,7 @@ class Editcount extends IncludableSpecialPage {
$fname = 'Editcount::editsInNs';
$nscount = array();
$dbr =& wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->selectField(
array( 'user', 'revision', 'page' ),
array( 'COUNT(*) as count' ),