mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Fix variadic parameters in error reporter
Give these functions the same signature as `->msg()` Change-Id: Ib90df52d6752512d7d9dddf51777c9c23c847e06
This commit is contained in:
parent
683b4e3e6b
commit
fb430f257e
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue