Pass function to Database::selectField in SpecialActiveusers.php
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 2 Feb 2016 20:12:57 +0000 (21:12 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Tue, 2 Feb 2016 20:12:57 +0000 (21:12 +0100)
Change-Id: Ie58b484cb8add682c7a0c138af2c3268faf7b383

includes/specials/SpecialActiveusers.php

index 1f369d8..cbe61bc 100644 (file)
@@ -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 );