r73583 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73582‎ | r73583 | r73584 >
Date:23:42, 22 September 2010
Author:dale
Status:deferred
Tags:
Comment:
hard code commons api provider for the commons domain ( need to refactor this )
Modified paths:
  • /branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js
@@ -2489,6 +2489,9 @@
24902490 } else if( this.apiTitleKey ) {
24912491 iframeUrl += 'apiTitleKey=' + escape( this.apiTitleKey ) + '&';
24922492 if ( this.apiProvider ) {
 2493+ if( mw.parseUri( document.URL ).host == 'commons.wikimedia.org'){
 2494+ this.apiProvider = 'commons';
 2495+ }
24932496 iframeUrl += 'apiProvider=' + escape( this.apiProvider ) + '&';
24942497 }
24952498 } else {

Status & tagging log