From a839730908be7f6967dd1c8ee5c5da9e4d984eb7 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 2 Feb 2016 21:12:57 +0100 Subject: [PATCH] Pass function to Database::selectField in SpecialActiveusers.php Change-Id: Ie58b484cb8add682c7a0c138af2c3268faf7b383 --- includes/specials/SpecialActiveusers.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.20.1