/**
* @param string $str
* @warning You should never use this method. I18n messages should be escaped
- * @deprecated 1.32 Use ->msg() or ->msgWiki() instead.
+ * @deprecated 1.32 Use ->msg() or ->getMsg() instead.
* @suppress SecurityCheck-XSS
* @return-taint exec_html
*/
echo $this->getMsg( $str )->text();
}
+ /**
+ * @deprecated since 1.33 Use ->msg() or ->getMsg() instead.
+ */
function msgWiki( $str ) {
+ // TODO: Add wfDeprecated( __METHOD__, '1.33' ) after 1.33 got released
echo $this->getMsg( $str )->parseAsBlock();
}
* @return string
*/
function makeLink( $key, $item, $options = [] ) {
- if ( isset( $item['text'] ) ) {
- $text = $item['text'];
- } else {
- $text = wfMessage( $item['msg'] ?? $key )->text();
- }
+ $text = $item['text'] ?? wfMessage( $item['msg'] ?? $key )->text();
$html = htmlspecialchars( $text );