Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js |
— | — | @@ -2489,6 +2489,9 @@ |
2490 | 2490 | } else if( this.apiTitleKey ) { |
2491 | 2491 | iframeUrl += 'apiTitleKey=' + escape( this.apiTitleKey ) + '&'; |
2492 | 2492 | if ( this.apiProvider ) { |
| 2493 | + if( mw.parseUri( document.URL ).host == 'commons.wikimedia.org'){ |
| 2494 | + this.apiProvider = 'commons'; |
| 2495 | + } |
2493 | 2496 | iframeUrl += 'apiProvider=' + escape( this.apiProvider ) + '&'; |
2494 | 2497 | } |
2495 | 2498 | } else { |