r61529 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61528‎ | r61529 | r61530 >
Date:19:03, 26 January 2010
Author:dale
Status:deferred
Tags:
Comment:
fixed embed where getParamValue == undefined
Modified paths:
  • /branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js
@@ -393,6 +393,9 @@
394394 mw.log('mwCheckForGadget');
395395 scripts = document.getElementsByTagName( 'script' );
396396 // Check for document paramater withJS and ignore found gadget
 397+ if( typeof getParamValue == 'undefined' ){
 398+ return false;
 399+ }
397400 var withJS = getParamValue("withJS");
398401
399402 for( var i = 0 ; i < scripts.length ; i ++){

Status & tagging log