http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73583

Revision: 73583
Author:   dale
Date:     2010-09-22 23:42:23 +0000 (Wed, 22 Sep 2010)

Log Message:
-----------
hard code commons api provider for the commons domain ( need to refactor this )

Modified Paths:
--------------
    branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js

Modified: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js
===================================================================
--- branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js    
2010-09-22 23:20:36 UTC (rev 73582)
+++ branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js    
2010-09-22 23:42:23 UTC (rev 73583)
@@ -2489,6 +2489,9 @@
                } else if( this.apiTitleKey ) {                 
                        iframeUrl += 'apiTitleKey=' + escape( this.apiTitleKey 
) + '&';
                        if ( this.apiProvider ) {
+                               if( mw.parseUri( document.URL ).host == 
'commons.wikimedia.org'){
+                                        this.apiProvider = 'commons';
+                               }
                                iframeUrl += 'apiProvider=' + escape( 
this.apiProvider ) + '&';
                        }
                } else {                        



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to