Clunky workaround for putting link into escaped message

Not escaping the message trips up my unescaped message checker

Change-Id: I7e4de4c5b9008988f9d3eedd83c825b3a050849b
This commit is contained in:
Niklas Laxström
2015-03-26 13:26:41 +01:00
parent 951be98b25
commit 231ab2dca0

View File

@@ -230,7 +230,7 @@
// Get the html of the link by wrapping it in div first // Get the html of the link by wrapping it in div first
link = $( '<div>' ).html( link ).html(); link = $( '<div>' ).html( link ).html();
return mw.msg( 'ext-uls-undo-language-tooltip-text', link ); return mw.message( 'ext-uls-undo-language-tooltip-text', '$1' ).escaped().replace( '$1', link );
} }
} ); } );