r92839 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92838‎ | r92839 | r92840 >
Date:01:17, 22 July 2011
Author:werdna
Status:deferred
Tags:
Comment:
MoodBar 1.17 compat: escaped() does not exist in 1.17
Modified paths:
  • /trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js
@@ -169,14 +169,15 @@
170170 var message, linkMessage, link,
171171 disableMsg, disableLink, out;
172172
173 - message = mw.message( 'moodbar-what-content' );
 173+ message = mw.msg( 'moodbar-what-content' );
174174 linkMessage = mw.msg( 'moodbar-what-link' );
175175 link = mw.html.element( 'a', {
176176 'href': mb.conf.infoUrl,
177177 'title': linkMessage
178178 }, linkMessage );
179179
180 - out = message.escaped().replace( /\$1/, link );
 180+ out = mw.html.escape( message )
 181+ .replace( /\$1/, link );
181182 out = mw.html.element( 'p', {},
182183 new mw.html.Raw( out )
183184 );
@@ -203,14 +204,15 @@
204205 function() {
205206 var message, linkMessage, link;
206207
207 - message = mw.message( 'moodbar-privacy' );
 208+ message = mw.msg( 'moodbar-privacy' );
208209 linkMessage = mw.msg( 'moodbar-privacy-link' );
209210 link = mw.html.element( 'a', {
210211 'href': mb.conf.privacyUrl,
211212 'title': linkMessage
212213 }, linkMessage );
213214
214 - return message.escaped().replace( /\$1/, link );
 215+ return mw.html.escape( message )
 216+ .replace( /\$1/, link );
215217 }
216218 )
217219 .end()

Status & tagging log