* (bug 23422) mp3 files can now be moved
* (bug 23448) MediaWiki:Summary-preview is now displayed instead of
MediaWiki:Subject-preview when previewing summary
+* (bug 23426) The {{REVISIONMONTH}} variable is now zero-padded and added new
+ variable {{REVISIONMONTH1}} when unpadded version is needed.
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent
'revisionday',
'revisionday2',
'revisionmonth',
+ 'revisionmonth1',
'revisionyear',
'revisiontimestamp',
'revisionuser',
# *after* a revision ID has been assigned. This is for null edits.
$this->mOutput->setFlag( 'vary-revision' );
wfDebug( __METHOD__ . ": {{REVISIONMONTH}} used, setting vary-revision...\n" );
+ $value = substr( $this->getRevisionTimestamp(), 4, 2 );
+ break;
+ case 'revisionmonth1':
+ # Let the edit saving system know we should parse the page
+ # *after* a revision ID has been assigned. This is for null edits.
+ $this->mOutput->setFlag( 'vary-revision' );
+ wfDebug( __METHOD__ . ": {{REVISIONMONTH1}} used, setting vary-revision...\n" );
$value = intval( substr( $this->getRevisionTimestamp(), 4, 2 ) );
break;
case 'revisionyear':
'revisionday' => array( 1, 'REVISIONDAY' ),
'revisionday2' => array( 1, 'REVISIONDAY2' ),
'revisionmonth' => array( 1, 'REVISIONMONTH' ),
+ 'revisionmonth1' => array( 1, 'REVISIONMONTH1' ),
'revisionyear' => array( 1, 'REVISIONYEAR' ),
'revisiontimestamp' => array( 1, 'REVISIONTIMESTAMP' ),
'revisionuser' => array( 1, 'REVISIONUSER' ),