Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js |
— | — | @@ -169,14 +169,15 @@ |
170 | 170 | var message, linkMessage, link, |
171 | 171 | disableMsg, disableLink, out; |
172 | 172 | |
173 | | - message = mw.message( 'moodbar-what-content' ); |
| 173 | + message = mw.msg( 'moodbar-what-content' ); |
174 | 174 | linkMessage = mw.msg( 'moodbar-what-link' ); |
175 | 175 | link = mw.html.element( 'a', { |
176 | 176 | 'href': mb.conf.infoUrl, |
177 | 177 | 'title': linkMessage |
178 | 178 | }, linkMessage ); |
179 | 179 | |
180 | | - out = message.escaped().replace( /\$1/, link ); |
| 180 | + out = mw.html.escape( message ) |
| 181 | + .replace( /\$1/, link ); |
181 | 182 | out = mw.html.element( 'p', {}, |
182 | 183 | new mw.html.Raw( out ) |
183 | 184 | ); |
— | — | @@ -203,14 +204,15 @@ |
204 | 205 | function() { |
205 | 206 | var message, linkMessage, link; |
206 | 207 | |
207 | | - message = mw.message( 'moodbar-privacy' ); |
| 208 | + message = mw.msg( 'moodbar-privacy' ); |
208 | 209 | linkMessage = mw.msg( 'moodbar-privacy-link' ); |
209 | 210 | link = mw.html.element( 'a', { |
210 | 211 | 'href': mb.conf.privacyUrl, |
211 | 212 | 'title': linkMessage |
212 | 213 | }, linkMessage ); |
213 | 214 | |
214 | | - return message.escaped().replace( /\$1/, link ); |
| 215 | + return mw.html.escape( message ) |
| 216 | + .replace( /\$1/, link ); |
215 | 217 | } |
216 | 218 | ) |
217 | 219 | .end() |