- drop no longer used $options variable
- use $this->msg() instead of wfMessage()
Change-Id: Ib690f3a8e63f3ede993e9cd34e2831ef18098ed9
$args = $spec;
$name = array_shift( $args );
if ( isset( $args['options'] ) ) {
- $options = $args['options'];
unset( $args['options'] );
wfDeprecated(
'Adding "options" to ' . __METHOD__ . ' is no longer supported',
$args = array();
$name = $spec;
}
- $s = str_replace( '$' . ( $n + 1 ), wfMessage( $name, $args )->plain(), $s );
+ $s = str_replace( '$' . ( $n + 1 ), $this->msg( $name, $args )->plain(), $s );
}
$this->addWikiText( $s );
}