Rename new ACTIVEUSERS word to NUMBEROFACTIVEUSERS
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 17 Feb 2009 23:05:04 +0000 (23:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 17 Feb 2009 23:05:04 +0000 (23:05 +0000)
includes/MagicWord.php
includes/parser/CoreParserFunctions.php
includes/parser/Parser.php
languages/messages/MessagesEn.php

index f53fdda..b3ebf6e 100644 (file)
@@ -90,7 +90,7 @@ class MagicWord {
                'subjectpagename',
                'subjectpagenamee',
                'numberofusers',
-               'activeusers',
+               'numberofactiveusers',
                'newsectionlink',
                'numberofpages',
                'currentversion',
@@ -142,7 +142,7 @@ class MagicWord {
                'localweek' => 3600,
                'localdow' => 3600,
                'numberofusers' => 3600,
-               'activeusers' => 3600,
+               'numberofactiveusers' => 3600,
                'numberofpages' => 3600,
                'currentversion' => 86400,
                'currenttimestamp' => 3600,
index 5a0c1b4..eaf0db0 100644 (file)
@@ -31,7 +31,7 @@ class CoreParserFunctions {
                $parser->setFunctionHook( 'plural',           array( __CLASS__, 'plural'           ), SFH_NO_HASH );
                $parser->setFunctionHook( 'numberofpages',    array( __CLASS__, 'numberofpages'    ), SFH_NO_HASH );
                $parser->setFunctionHook( 'numberofusers',    array( __CLASS__, 'numberofusers'    ), SFH_NO_HASH );
-               $parser->setFunctionHook( 'activeusers',      array( __CLASS__, 'activeusers'      ), SFH_NO_HASH );
+               $parser->setFunctionHook( 'numberofactiveusers', array( __CLASS__, 'numberofactiveusers' ), SFH_NO_HASH );
                $parser->setFunctionHook( 'numberofarticles', array( __CLASS__, 'numberofarticles' ), SFH_NO_HASH );
                $parser->setFunctionHook( 'numberoffiles',    array( __CLASS__, 'numberoffiles'    ), SFH_NO_HASH );
                $parser->setFunctionHook( 'numberofadmins',   array( __CLASS__, 'numberofadmins'   ), SFH_NO_HASH );
@@ -245,7 +245,7 @@ class CoreParserFunctions {
        static function numberofusers( $parser, $raw = null ) {
                return self::formatRaw( SiteStats::users(), $raw );
        }
-       static function activeusers( $parser, $raw = null ) {
+       static function numberofactiveusers( $parser, $raw = null ) {
                return self::formatRaw( SiteStats::activeUsers(), $raw );
        }
        static function numberofarticles( $parser, $raw = null ) {
index b662cdc..f5b351b 100644 (file)
@@ -2492,7 +2492,7 @@ class Parser
                                return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::images() );
                        case 'numberofusers':
                                return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::users() );
-                       case 'activeusers':
+                       case 'numberofactiveusers':
                                return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::activeUsers() );
                        case 'numberofpages':
                                return $this->mVarCache[$index] = $wgContLang->formatNum( SiteStats::pages() );
index 0456077..1317f3f 100644 (file)
@@ -232,7 +232,7 @@ $magicWords = array(
        'numberofarticles'       => array( 1,    'NUMBEROFARTICLES'       ),
        'numberoffiles'          => array( 1,    'NUMBEROFFILES'          ),
        'numberofusers'          => array( 1,    'NUMBEROFUSERS'          ),
-       'activeusers'            => array( 1,    'ACTIVEUSERS', 'NUMBEROFACTIVEUSERS' ),
+       'numberofactiveusers'    => array( 1,    'NUMBEROFACTIVEUSERS'    ),
        'numberofedits'          => array( 1,    'NUMBEROFEDITS'          ),
        'numberofviews'          => array( 1,    'NUMBEROFVIEWS'          ),
        'pagename'               => array( 1,    'PAGENAME'               ),