From: Niklas Laxström Date: Sat, 18 Jul 2009 07:44:57 +0000 (+0000) Subject: Whitespace X-Git-Tag: 1.31.0-rc.0~40858 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=2dce653596fa54efab501b1833489bc391839308;p=lhc%2Fweb%2Fwiklou.git Whitespace --- diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 9427536f7e..337ea6e4fd 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -93,7 +93,7 @@ class SiteStats { self::load(); return self::$row->ss_users; } - + static function activeUsers() { self::load(); return self::$row->ss_active_users; @@ -111,7 +111,7 @@ class SiteStats { wfDeprecated(__METHOD__); return self::numberingroup('sysop'); } - + /** * Find the number of users in a given user group. * @param string $group Name of group @@ -124,13 +124,13 @@ class SiteStats { $hit = $wgMemc->get( $key ); if ( !$hit ) { $dbr = wfGetDB( DB_SLAVE ); - $hit = $dbr->selectField( 'user_groups', 'COUNT(*)', - array( 'ug_group' => $group ), __METHOD__ ); + $hit = $dbr->selectField( 'user_groups', 'COUNT(*)', + array( 'ug_group' => $group ), __METHOD__ ); $wgMemc->set( $key, $hit, 3600 ); } self::$groupMemberCounts[$group] = $hit; } - return self::$groupMemberCounts[$group]; + return self::$groupMemberCounts[$group]; } static function jobs() { @@ -230,7 +230,7 @@ class SiteStatsUpdate { $dbw->commit(); } } - + public static function cacheUpdate( $dbw ) { $dbr = wfGetDB( DB_SLAVE, array( 'SpecialStatistics', 'vslow') ); # Get non-bot users than did some recent action other than making accounts. @@ -238,7 +238,7 @@ class SiteStatsUpdate { $activeUsers = $dbr->selectField( 'recentchanges', 'COUNT( DISTINCT rc_user_text )', array( 'rc_user != 0', 'rc_bot' => 0, "rc_log_type != 'newusers' OR rc_log_type IS NULL" ), __METHOD__ ); - $dbw->update( 'site_stats', + $dbw->update( 'site_stats', array( 'ss_active_users' => intval($activeUsers) ), array( 'ss_row_id' => 1 ), __METHOD__ );