From: umherirrender Date: Tue, 2 Feb 2016 20:12:57 +0000 (+0100) Subject: Pass function to Database::selectField in SpecialActiveusers.php X-Git-Tag: 1.31.0-rc.0~8082^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=a839730908be7f6967dd1c8ee5c5da9e4d984eb7;p=lhc%2Fweb%2Fwiklou.git Pass function to Database::selectField in SpecialActiveusers.php Change-Id: Ie58b484cb8add682c7a0c138af2c3268faf7b383 --- diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index 1f369d804c..cbe61bcfd6 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -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 );