*
* First implemented with MediaWiki 1.17, the Message class is intented to
* replace the old wfMsg* functions that over time grew unusable.
- * @see https://www.mediawiki.org/wiki/New_messages_API for equivalences
+ * @see https://www.mediawiki.org/wiki/Manual:Messages_API for equivalences
* between old and new functions.
*
* You should use the wfMessage() global function which acts as a wrapper for
'tabindex' => '2',
'options' => self::getSuggestedDurations(),
'other' => $this->msg( 'ipbother' )->text(),
+ 'default' => $this->msg( 'ipb-default-expiry' )->inContentLanguage()->text(),
),
'Reason' => array(
'type' => 'selectandother',
}
if( $block->mExpiry == 'infinity' ) {
- $fields['Expiry']['default'] = 'indefinite';
+ $fields['Expiry']['default'] = 'infinite';
} else {
$fields['Expiry']['default'] = wfTimestamp( TS_RFC2822, $block->mExpiry );
}
Since you do not have the hideuser right, you cannot see or edit the user's block.",
'ipbblocked' => 'You cannot block or unblock other users, because you are yourself blocked',
'ipbnounblockself' => 'You are not allowed to unblock yourself',
+'ipb-default-expiry' => '', # empty so the default is unchanged from previous versions of MediaWiki
# Developer tools
'lockdb' => 'Lock database',
'version-entrypoints-index-php',
'version-entrypoints-api-php',
'version-entrypoints-load-php',
+ 'ipb-default-expiry',
);
/** Optional messages, which may be translated only if changed in the target language. */
'cant-see-hidden-user',
'ipbblocked',
'ipbnounblockself',
+ 'ipb-default-expiry',
),
'developertools' => array(
'lockdb',