From: Aaron Schulz Date: Sun, 21 Sep 2008 13:00:11 +0000 (+0000) Subject: Run query for people that don't have $wgMiserMode on for activeusers (bug 15666) X-Git-Tag: 1.31.0-rc.0~45174 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=f68c3ce7bb5f7b9bdbe196754cfc950a9213fe34;p=lhc%2Fweb%2Fwiklou.git Run query for people that don't have $wgMiserMode on for activeusers (bug 15666) --- diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 515ada6cce..b4835c9307 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -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