Fix variadic parameters in error reporter

Give these functions the same signature as `->msg()`

Change-Id: Ib90df52d6752512d7d9dddf51777c9c23c847e06
This commit is contained in:
Adam Wight 2019-11-22 23:20:04 +01:00 committed by Thiemo Kreuz (WMDE)
parent 683b4e3e6b
commit fb430f257e

View file

@ -50,11 +50,11 @@ class CiteErrorReporter {
* @return-taint tainted
*/
public function plain( $key, ...$params ) {
$msg = wfMessage( $key, $params )->inLanguage( $this->language );
$msg = wfMessage( $key, ...$params )->inLanguage( $this->language );
if ( strncmp( $key, 'cite_warning_', 13 ) === 0 ) {
if ( strncmp( $msg->getKey(), 'cite_warning_', 13 ) === 0 ) {
$type = 'warning';
$id = substr( $key, 13 );
$id = substr( $msg->getKey(), 13 );
$extraClass = ' mw-ext-cite-warning-' . Sanitizer::escapeClass( $id );
} else {
$type = 'error';