Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -251,6 +251,7 @@ |
252 | 252 | 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' ), |
253 | 253 | 'numberoffiles' => array( 1, 'NUMBEROFFILES' ), |
254 | 254 | 'numberofusers' => array( 1, 'NUMBEROFUSERS' ), |
| 255 | + 'numberofedits' => array( 1, 'NUMBEROFEDITS' ), |
255 | 256 | 'pagename' => array( 1, 'PAGENAME' ), |
256 | 257 | 'pagenamee' => array( 1, 'PAGENAMEE' ), |
257 | 258 | 'namespace' => array( 1, 'NAMESPACE' ), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -116,6 +116,7 @@ |
117 | 117 | * Introduce 'FileUpload' hook; see docs/hooks.txt for more information |
118 | 118 | * Introduce 'SearchUpdate' hook; see docs/hooks.txt for more information |
119 | 119 | * Introduce 'mywatchlist' message; used on personal menu to link to watchlist page |
| 120 | +* Introduce magic word {{NUMBEROFEDITS}} |
120 | 121 | |
121 | 122 | == Bugfixes since 1.9 == |
122 | 123 | |
Index: trunk/phase3/includes/CoreParserFunctions.php |
— | — | @@ -135,6 +135,7 @@ |
136 | 136 | static function numberofarticles( $parser, $raw = null ) { return self::statisticsFunction( 'articles', $raw ); } |
137 | 137 | static function numberoffiles( $parser, $raw = null ) { return self::statisticsFunction( 'images', $raw ); } |
138 | 138 | static function numberofadmins( $parser, $raw = null ) { return self::statisticsFunction( 'admins', $raw ); } |
| 139 | + static function numberofedits( $parser, $raw = null ) { return self::statisticsFunction( 'edits', $raw ); } |
139 | 140 | |
140 | 141 | static function pagesinnamespace( $parser, $namespace = 0, $raw = null ) { |
141 | 142 | $count = SiteStats::pagesInNs( intval( $namespace ) ); |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -53,6 +53,7 @@ |
54 | 54 | 'localhour', |
55 | 55 | 'numberofarticles', |
56 | 56 | 'numberoffiles', |
| 57 | + 'numberofedits', |
57 | 58 | 'sitename', |
58 | 59 | 'server', |
59 | 60 | 'servername', |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -162,6 +162,7 @@ |
163 | 163 | $this->setFunctionHook( 'numberofarticles', array( 'CoreParserFunctions', 'numberofarticles' ), SFH_NO_HASH ); |
164 | 164 | $this->setFunctionHook( 'numberoffiles', array( 'CoreParserFunctions', 'numberoffiles' ), SFH_NO_HASH ); |
165 | 165 | $this->setFunctionHook( 'numberofadmins', array( 'CoreParserFunctions', 'numberofadmins' ), SFH_NO_HASH ); |
| 166 | + $this->setFunctionHook( 'numberofedits', array( 'CoreParserFunctions', 'numberofedits' ), SFH_NO_HASH ); |
166 | 167 | $this->setFunctionHook( 'language', array( 'CoreParserFunctions', 'language' ), SFH_NO_HASH ); |
167 | 168 | $this->setFunctionHook( 'padleft', array( 'CoreParserFunctions', 'padleft' ), SFH_NO_HASH ); |
168 | 169 | $this->setFunctionHook( 'padright', array( 'CoreParserFunctions', 'padright' ), SFH_NO_HASH ); |
— | — | @@ -2540,6 +2541,8 @@ |
2541 | 2542 | return $varCache[$index] = $wgContLang->formatNum( SiteStats::pages() ); |
2542 | 2543 | case 'numberofadmins': |
2543 | 2544 | return $varCache[$index] = $wgContLang->formatNum( SiteStats::admins() ); |
| 2545 | + case 'numberofedits': |
| 2546 | + return $varCache[$index] = $wgContLang->formatNum( SiteStats::edits() ); |
2544 | 2547 | case 'currenttimestamp': |
2545 | 2548 | return $varCache[$index] = wfTimestampNow(); |
2546 | 2549 | case 'localtimestamp': |