r67980 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67979‎ | r67980 | r67981 >
Date:02:53, 14 June 2010
Author:dale
Status:deferred
Tags:
Comment:
Allow the document.URL to trigger the debug flag with "debug=true" in its url ( related to bug 23809 )
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 = 'r131';
 8+var mwRemoteVersion = 'r132';
99 var mwUseScriptLoader = true;
1010
1111 // Log the mwRemote version makes it easy to debug cache issues
@@ -23,11 +23,18 @@
2424 }
2525 }
2626
 27+// Allow the document.URL to trigger the debug flag with "debug=true" in its url
 28+if( document.URL.indexOf( 'debug=true' ) !== -1 ){
 29+ mwReqParam['debug'] = true;
 30+}
 31+
2732 // Check if debug mode and disable script grouping
2833 if( mwReqParam['debug'] ) {
2934 mwUseScriptLoader = false;
3035 }
3136
 37+
 38+
3239 // Setup up some globals to wrap mwEmbed mw.ready and mw.setConfig functions
3340
3441 //Setup preMwEmbedReady queue

Status & tagging log