r74278 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74277‎ | r74278 | r74279 >
Date:21:17, 4 October 2010
Author:tparscal
Status:ok
Tags:
Comment:
Fixed autoMsg misusing mediaWiki.msg.get
Modified paths:
  • /trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js
@@ -139,8 +139,10 @@
140140 } else if ( property + 'Msg' in object ) {
141141 var p = object[property + 'Msg'];
142142 if ( p instanceof Array && p.length >= 2 ) {
143 - // [ messageKey, { 'parameters': ['arg1, arg2, ...] } ]
144 - return mediaWiki.msg.get( object[property + 'Msg' ][0], object[property + 'Msg' ][1] );
 143+ return mediaWiki.msg.get(
 144+ object[property + 'Msg' ][0],
 145+ { 'parameters': [object[property + 'Msg' ][1]] }
 146+ );
145147 } else {
146148 return mediaWiki.msg.get( p );
147149 }

Status & tagging log