r103162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103161‎ | r103162 | r103163 >
Date:12:55, 15 November 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Use mw.message over manual escaping. I18n/#241
Modified paths:
  • /trunk/extensions/Narayam/js/ext.narayam.core.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/js/ext.narayam.core.js
@@ -508,7 +508,7 @@
509509 var $narayamMenuItemLabel = $( '<label />' )
510510 .attr( 'for' ,'narayam-' + scheme )
511511 .append( $input )
512 - .append( mw.html.escape( mw.msg( "narayam-"+ scheme ) ) );
 512+ .append( mw.message( "narayam-"+ scheme ).escaped() );
513513
514514 var $narayamMenuItem = $( '<li/>' )
515515 .append( $input )

Status & tagging log