From 7a5ca259bebe230538322903b930d152f572dc50 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 17 Feb 2009 23:05:04 +0000 Subject: [PATCH] Rename new ACTIVEUSERS word to NUMBEROFACTIVEUSERS --- includes/MagicWord.php | 4 ++-- includes/parser/CoreParserFunctions.php | 4 ++-- includes/parser/Parser.php | 2 +- languages/messages/MessagesEn.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/MagicWord.php b/includes/MagicWord.php index f53fdda051..b3ebf6e86a 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -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, diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 5a0c1b440d..eaf0db0fba 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -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 ) { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index b662cdc27f..f5b351bb81 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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() ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 0456077b08..1317f3fc4c 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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' ), -- 2.20.1