mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
ViewPageTarget#onSaveErrorSpamBlacklist: Use mw.language.listToText now it exists
Change-Id: I1289c43ea4be1cd9dc1addb7c765d7050b311d8d
This commit is contained in:
parent
384232ee64
commit
6b61addd06
|
@ -519,8 +519,10 @@ ve.init.mw.ViewPageTarget.prototype.onSaveErrorEmpty = function () {
|
|||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.onSaveErrorSpamBlacklist = function ( editApi ) {
|
||||
this.showSaveError(
|
||||
// TODO: Use mediawiki.language equivalant of Language.php::listToText once it exists
|
||||
ve.msg( 'spamprotectiontext' ) + ' ' + ve.msg( 'spamprotectionmatch', editApi.spamblacklist.split( '|' ).join( ', ' ) ),
|
||||
ve.msg( 'spamprotectiontext' ) + ' ' +
|
||||
ve.msg(
|
||||
'spamprotectionmatch', mw.language.listToText( editApi.spamblacklist.split( '|' ) )
|
||||
),
|
||||
false // prevents reapply
|
||||
);
|
||||
this.events.trackSaveError( 'spamblacklist' );
|
||||
|
|
Loading…
Reference in a new issue