r67420 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67419‎ | r67420 | r67421 >
Date:02:40, 6 June 2010
Author:dale
Status:deferred
Tags:
Comment:
for remote mwEmbed gadget, when debug is enabled, directly load script file ( no script-grouping )
Modified paths:
  • /branches/MwEmbedStandAlone/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js
@@ -4,7 +4,7 @@
55 */
66 var urlparts = getRemoteEmbedPath();
77 var mwEmbedHostPath = urlparts[0];
8 -var mwRemoteVersion = 'r127';
 8+var mwRemoteVersion = 'r128';
99 var mwUseScriptLoader = true;
1010
1111 // Log the mwRemote version makes it easy to debug cache issues
@@ -21,8 +21,12 @@
2222 mwReqParam[ p[0] ] = p[1];
2323 }
2424 }
25 -
2625
 26+// Check if debug mode and disable script grouping
 27+if( mwReqParam['debug'] ) {
 28+ mwUseScriptLoader = false;
 29+}
 30+
2731 // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded )
2832 addOnloadHook( function() {
2933 doPageSpecificRewrite();
@@ -332,11 +336,13 @@
333337 */
334338 function mwGetReqArgs() {
335339 var rurl = '';
336 - if ( mwReqParam['debug'] )
 340+ if ( mwReqParam['debug'] ){
337341 rurl += 'debug=true&';
 342+ }
338343
339 - if ( mwReqParam['uselang'] )
 344+ if ( mwReqParam['uselang'] ){
340345 rurl += 'uselang=' + mwReqParam['uselang'] + '&';
 346+ }
341347
342348 if ( mwReqParam['urid'] ) {
343349 rurl += 'urid=' + mwReqParam['urid'];

Status & tagging log