Run query for people that don't have $wgMiserMode on for activeusers (bug 15666)
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 21 Sep 2008 13:00:11 +0000 (13:00 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 21 Sep 2008 13:00:11 +0000 (13:00 +0000)
includes/specials/SpecialStatistics.php

index 515ada6..b4835c9 100644 (file)
@@ -38,6 +38,11 @@ function wfSpecialStatistics( $par = '' ) {
                                formatRow( wfMsgExt( 'statistics-views-peredit', array( 'parseinline' ) ),
                                                $wgLang->formatNum( sprintf( '%.2f', $edits ? $views / $edits : 0 ) ) );
        }
+       # Set active user count
+       if( !$wgMiserMode ) {
+               $dbw = wfGetDB( DB_MASTER );
+               SiteStatsUpdate::cacheUpdate( $dbw );
+       }
 
        if( $wgRequest->getVal( 'action' ) == 'raw' ) {
                # Depreciated, kept for backwards compatibility