Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -7263,18 +7263,18 @@ |
7264 | 7264 | !!end |
7265 | 7265 | |
7266 | 7266 | !!test |
7267 | | -Formatted unlinked date |
| 7267 | +formatdate parser function |
7268 | 7268 | !!input |
7269 | | -{{formatdate:2009-03-24}} |
| 7269 | +{{#formatdate:2009-03-24}} |
7270 | 7270 | !! result |
7271 | 7271 | <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span> |
7272 | 7272 | </p> |
7273 | 7273 | !! end |
7274 | 7274 | |
7275 | 7275 | !!test |
7276 | | -Formatted unlinked date with default format |
| 7276 | +formatdate parser function, with default format |
7277 | 7277 | !!input |
7278 | | -{{formatdate:2009-03-24|mdy}} |
| 7278 | +{{#formatdate:2009-03-24|mdy}} |
7279 | 7279 | !! result |
7280 | 7280 | <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span> |
7281 | 7281 | </p> |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | $parser->setFunctionHook( 'subjectpagename', array( __CLASS__, 'subjectpagename' ), SFH_NO_HASH ); |
69 | 69 | $parser->setFunctionHook( 'subjectpagenamee', array( __CLASS__, 'subjectpagenamee' ), SFH_NO_HASH ); |
70 | 70 | $parser->setFunctionHook( 'tag', array( __CLASS__, 'tagObj' ), SFH_OBJECT_ARGS ); |
71 | | - $parser->setFunctionHook( 'formatdate', array( __CLASS__, 'formatDate' ), SFH_NO_HASH ); |
| 71 | + $parser->setFunctionHook( 'formatdate', array( __CLASS__, 'formatDate' ) ); |
72 | 72 | |
73 | 73 | if ( $wgAllowDisplayTitle ) { |
74 | 74 | $parser->setFunctionHook( 'displaytitle', array( __CLASS__, 'displaytitle' ), SFH_NO_HASH ); |