mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-11-27 17:50:50 +00:00
Get rid of the last (I think) php4-style calls to wfGetDB()
This commit is contained in:
parent
1983488322
commit
ab53469680
Notes:
Raimond Spekking
2010-04-07 18:54:28 +00:00
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue