r106228 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106227‎ | r106228 | r106229 >
Date:19:09, 14 December 2011
Author:neilk
Status:ok
Tags:
Comment:
fix magic - some strings still use SITENAME
Modified paths:
  • /trunk/extensions/UploadWizard/UploadWizardPage.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/UploadWizardPage.js
@@ -7,6 +7,8 @@
88 */
99
1010 // Create UploadWizard
 11+( function( mw, $, undefined ) {
 12+
1113 mw.UploadWizardPage = function() {
1214
1315 var config = mw.config.get( 'UploadWizardConfig' );
@@ -20,5 +22,16 @@
2123 };
2224
2325 jQuery( document ).ready( function() {
 26+ // add "magic" to Language template parser for keywords
 27+ var options = { magic: { 'SITENAME' : wgSiteName } };
 28+
 29+ // these functions may exist already, but we want them to also know about our magic
 30+ // (the interface for this needs to change; add magic on the fly?)
 31+ window.gM = mw.jqueryMsg.getMessageFunction( options );
 32+ $.fn.msg = mw.jqueryMsg.getPlugin( options );
 33+
 34+ // show page.
2435 mw.UploadWizardPage();
2536 } );
 37+
 38+} )( window.mediaWiki, jQuery );

Status & tagging log