Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -232,6 +232,7 @@ |
233 | 233 | 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ), |
234 | 234 | 'numberoffiles' => array( 1, 'NUMBEROFFILES' ), |
235 | 235 | 'numberofusers' => array( 1, 'NUMBEROFUSERS' ), |
| 236 | + 'activeusers' => array( 1, 'ACTIVEUSERS' ), |
236 | 237 | 'numberofedits' => array( 1, 'NUMBEROFEDITS' ), |
237 | 238 | 'numberofviews' => array( 1, 'NUMBEROFVIEWS' ), |
238 | 239 | 'pagename' => array( 1, 'PAGENAME' ), |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -2492,6 +2492,8 @@ |
2493 | 2493 | return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::images() ); |
2494 | 2494 | case 'numberofusers': |
2495 | 2495 | return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::users() ); |
| 2496 | + case 'activeusers': |
| 2497 | + return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::activeUsers() ); |
2496 | 2498 | case 'numberofpages': |
2497 | 2499 | return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::pages() ); |
2498 | 2500 | case 'numberofadmins': |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -31,6 +31,7 @@ |
32 | 32 | $parser->setFunctionHook( 'plural', array( __CLASS__, 'plural' ), SFH_NO_HASH ); |
33 | 33 | $parser->setFunctionHook( 'numberofpages', array( __CLASS__, 'numberofpages' ), SFH_NO_HASH ); |
34 | 34 | $parser->setFunctionHook( 'numberofusers', array( __CLASS__, 'numberofusers' ), SFH_NO_HASH ); |
| 35 | + $parser->setFunctionHook( 'activeusers', array( __CLASS__, 'activeusers' ), SFH_NO_HASH ); |
35 | 36 | $parser->setFunctionHook( 'numberofarticles', array( __CLASS__, 'numberofarticles' ), SFH_NO_HASH ); |
36 | 37 | $parser->setFunctionHook( 'numberoffiles', array( __CLASS__, 'numberoffiles' ), SFH_NO_HASH ); |
37 | 38 | $parser->setFunctionHook( 'numberofadmins', array( __CLASS__, 'numberofadmins' ), SFH_NO_HASH ); |
— | — | @@ -244,6 +245,9 @@ |
245 | 246 | static function numberofusers( $parser, $raw = null ) { |
246 | 247 | return self::formatRaw( SiteStats::users(), $raw ); |
247 | 248 | } |
| 249 | + static function activeusers( $parser, $raw = null ) { |
| 250 | + return self::formatRaw( SiteStats::activeUsers(), $raw ); |
| 251 | + } |
248 | 252 | static function numberofarticles( $parser, $raw = null ) { |
249 | 253 | return self::formatRaw( SiteStats::articles(), $raw ); |
250 | 254 | } |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -90,6 +90,7 @@ |
91 | 91 | 'subjectpagename', |
92 | 92 | 'subjectpagenamee', |
93 | 93 | 'numberofusers', |
| 94 | + 'activeusers', |
94 | 95 | 'newsectionlink', |
95 | 96 | 'numberofpages', |
96 | 97 | 'currentversion', |
— | — | @@ -141,6 +142,7 @@ |
142 | 143 | 'localweek' => 3600, |
143 | 144 | 'localdow' => 3600, |
144 | 145 | 'numberofusers' => 3600, |
| 146 | + 'activeusers' => 3600, |
145 | 147 | 'numberofpages' => 3600, |
146 | 148 | 'currentversion' => 86400, |
147 | 149 | 'currenttimestamp' => 3600, |