Index: trunk/phase3/CREDITS |
— | — | @@ -42,6 +42,7 @@ |
43 | 43 | * Max Semenik |
44 | 44 | * Mormegil |
45 | 45 | * RememberTheDot |
| 46 | +* Soxred93 |
46 | 47 | |
47 | 48 | == Translators == |
48 | 49 | * Anders Wegge Jakobsen |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -33,6 +33,7 @@ |
34 | 34 | $parser->setFunctionHook( 'numberofarticles', array( __CLASS__, 'numberofarticles' ), SFH_NO_HASH ); |
35 | 35 | $parser->setFunctionHook( 'numberoffiles', array( __CLASS__, 'numberoffiles' ), SFH_NO_HASH ); |
36 | 36 | $parser->setFunctionHook( 'numberofadmins', array( __CLASS__, 'numberofadmins' ), SFH_NO_HASH ); |
| 37 | + $parser->setFunctionHook( 'numberingroup', array( __CLASS__, 'numberingroup' ), SFH_NO_HASH ); |
37 | 38 | $parser->setFunctionHook( 'numberofedits', array( __CLASS__, 'numberofedits' ), SFH_NO_HASH ); |
38 | 39 | $parser->setFunctionHook( 'language', array( __CLASS__, 'language' ), SFH_NO_HASH ); |
39 | 40 | $parser->setFunctionHook( 'padleft', array( __CLASS__, 'padleft' ), SFH_NO_HASH ); |
— | — | @@ -224,6 +225,9 @@ |
225 | 226 | static function pagesinnamespace( $parser, $namespace = 0, $raw = null ) { |
226 | 227 | return self::formatRaw( SiteStats::pagesInNs( intval( $namespace ) ), $raw ); |
227 | 228 | } |
| 229 | + static function numberingroup( $parser, $name = '', $raw = null) { |
| 230 | + return self::formatRaw( SiteStats::numberingroup( strtolower( $name ) ), $raw ); |
| 231 | + } |
228 | 232 | |
229 | 233 | /** |
230 | 234 | * Return the number of pages in the given category, or 0 if it's nonexis- |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -107,6 +107,7 @@ |
108 | 108 | 'pagesincategory', |
109 | 109 | 'index', |
110 | 110 | 'noindex', |
| 111 | + 'numberingroup', |
111 | 112 | ); |
112 | 113 | |
113 | 114 | /* Array of caching hints for ParserCache */ |
— | — | @@ -145,6 +146,7 @@ |
146 | 147 | 'localtimestamp' => 3600, |
147 | 148 | 'pagesinnamespace' => 3600, |
148 | 149 | 'numberofadmins' => 3600, |
| 150 | + 'numberingroup' => 3600, |
149 | 151 | ); |
150 | 152 | |
151 | 153 | static public $mDoubleUnderscoreIDs = array( |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -342,6 +342,7 @@ |
343 | 343 | 'pagesize' => array( 1, 'PAGESIZE' ), |
344 | 344 | 'index' => array( 1, '__INDEX__' ), |
345 | 345 | 'noindex' => array( 1, '__NOINDEX__' ), |
| 346 | + 'numberingroup' => array( 1, 'NUMBERINGROUP', 'NUMINGROUP' ), |
346 | 347 | 'staticredirect' => array( 1, '__STATICREDIRECT__' ), |
347 | 348 | ); |
348 | 349 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -99,6 +99,7 @@ |
100 | 100 | * Backend upload code has been removed from SpecialUpload.php. This may cause |
101 | 101 | backwards incompatibility with upload extensions. |
102 | 102 | * BMP images are now displayed as PNG |
| 103 | +* (bug 13471) Added NUMBERINGROUP magic word |
103 | 104 | |
104 | 105 | === Bug fixes in 1.14 === |
105 | 106 | |