Drop support for 'options' in OutputPage::wrapWikiMsg()
It was not used[1] and complicated migration to Message class. [1] Checked uses in 100 extensions, including most Wikimedia, twn and SMW extensions. Change-Id: Id2ac68ef79e98272d02117165e2f04034f209fb3
This commit is contained in:
parent
92d1f06eeb
commit
a6e8b13531
2 changed files with 7 additions and 4 deletions
|
|
@ -306,6 +306,8 @@ changes to languages because of Bugzilla reports.
|
|||
* Deprecated DatabaseBase functions newFromParams(), newFromType(), set(),
|
||||
quote_ident(), and escapeLike() were removed.
|
||||
* Use of __DIR__ instead of dirname( __FILE__ ).
|
||||
* OutputPage::wrapWikiMsg() no longer supports the 'options' parameter. It was
|
||||
not used and complicated migration to Message class.
|
||||
|
||||
== Compatibility ==
|
||||
|
||||
|
|
|
|||
|
|
@ -3537,9 +3537,6 @@ $templates
|
|||
* message names, or arrays, in which case the first element is the message name,
|
||||
* and subsequent elements are the parameters to that message.
|
||||
*
|
||||
* The special named parameter 'options' in a message specification array is passed
|
||||
* through to the $options parameter of wfMsgExt().
|
||||
*
|
||||
* Don't use this for messages that are not in users interface language.
|
||||
*
|
||||
* For example:
|
||||
|
|
@ -3567,12 +3564,16 @@ $templates
|
|||
if ( isset( $args['options'] ) ) {
|
||||
$options = $args['options'];
|
||||
unset( $args['options'] );
|
||||
wfDeprecated(
|
||||
'Adding "options" to ' . __METHOD__ . ' is no longer supported',
|
||||
'1.20'
|
||||
);
|
||||
}
|
||||
} else {
|
||||
$args = array();
|
||||
$name = $spec;
|
||||
}
|
||||
$s = str_replace( '$' . ( $n + 1 ), wfMsgExt( $name, $options, $args ), $s );
|
||||
$s = str_replace( '$' . ( $n + 1 ), wfMessage( $name, $args )->plain(), $s );
|
||||
}
|
||||
$this->addWikiText( $s );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue