Merge "Pass function to Database::selectField in SpecialActiveusers.php"
This commit is contained in:
commit
48fdd531c8
1 changed files with 3 additions and 2 deletions
|
|
@ -279,11 +279,12 @@ class SpecialActiveUsers extends SpecialPage {
|
|||
|
||||
// Mention the level of cache staleness...
|
||||
$dbr = wfGetDB( DB_SLAVE, 'recentchanges' );
|
||||
$rcMax = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)' );
|
||||
$rcMax = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', '', __METHOD__ );
|
||||
if ( $rcMax ) {
|
||||
$cTime = $dbr->selectField( 'querycache_info',
|
||||
'qci_timestamp',
|
||||
array( 'qci_type' => 'activeusers' )
|
||||
array( 'qci_type' => 'activeusers' ),
|
||||
__METHOD__
|
||||
);
|
||||
if ( $cTime ) {
|
||||
$secondsOld = wfTimestamp( TS_UNIX, $rcMax ) - wfTimestamp( TS_UNIX, $cTime );
|
||||
|
|
|
|||
Loading…
Reference in a new issue