ViewPageTarget#onSaveErrorSpamBlacklist: Use mw.language.listToText now it exists

Change-Id: I1289c43ea4be1cd9dc1addb7c765d7050b311d8d
This commit is contained in:
James D. Forrester 2014-11-18 14:22:30 -08:00
parent 384232ee64
commit 6b61addd06

View file

@ -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' );