Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -160,6 +160,8 @@ |
161 | 161 | * (bug 23422) mp3 files can now be moved |
162 | 162 | * (bug 23448) MediaWiki:Summary-preview is now displayed instead of |
163 | 163 | MediaWiki:Subject-preview when previewing summary |
| 164 | +* (bug 23426) The {{REVISIONMONTH}} variable is now zero-padded and added new |
| 165 | + variable {{REVISIONMONTH1}} when unpadded version is needed. |
164 | 166 | |
165 | 167 | === API changes in 1.17 === |
166 | 168 | * (bug 22738) Allow filtering by action type on query=logevent |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -311,6 +311,7 @@ |
312 | 312 | 'revisionday' => array( 1, 'REVISIONDAY' ), |
313 | 313 | 'revisionday2' => array( 1, 'REVISIONDAY2' ), |
314 | 314 | 'revisionmonth' => array( 1, 'REVISIONMONTH' ), |
| 315 | + 'revisionmonth1' => array( 1, 'REVISIONMONTH1' ), |
315 | 316 | 'revisionyear' => array( 1, 'REVISIONYEAR' ), |
316 | 317 | 'revisiontimestamp' => array( 1, 'REVISIONTIMESTAMP' ), |
317 | 318 | 'revisionuser' => array( 1, 'REVISIONUSER' ), |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -2528,6 +2528,13 @@ |
2529 | 2529 | # *after* a revision ID has been assigned. This is for null edits. |
2530 | 2530 | $this->mOutput->setFlag( 'vary-revision' ); |
2531 | 2531 | wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" ); |
| 2532 | + $value = substr( $this->getRevisionTimestamp(), 4, 2 ); |
| 2533 | + break; |
| 2534 | + case 'revisionmonth1': |
| 2535 | + # Let the edit saving system know we should parse the page |
| 2536 | + # *after* a revision ID has been assigned. This is for null edits. |
| 2537 | + $this->mOutput->setFlag( 'vary-revision' ); |
| 2538 | + wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" ); |
2532 | 2539 | $value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) ); |
2533 | 2540 | break; |
2534 | 2541 | case 'revisionyear': |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -79,6 +79,7 @@ |
80 | 80 | 'revisionday', |
81 | 81 | 'revisionday2', |
82 | 82 | 'revisionmonth', |
| 83 | + 'revisionmonth1', |
83 | 84 | 'revisionyear', |
84 | 85 | 'revisiontimestamp', |
85 | 86 | 'revisionuser', |