Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js |
— | — | @@ -1623,7 +1623,7 @@ |
1624 | 1624 | var request = { |
1625 | 1625 | 'prop': 'imageinfo', |
1626 | 1626 | // In case the user added File: or Image: to the apiKey: |
1627 | | - 'titles': 'File:' + this.apiTitleKey.replace( /^(File:|Image:)/ , '' ), |
| 1627 | + 'titles': 'File:' + unescape( this.apiTitleKey ).replace( /^(File:|Image:)/ , '' ), |
1628 | 1628 | 'iiprop': 'url|size|dimensions|metadata', |
1629 | 1629 | 'iiurlwidth': _this.width, |
1630 | 1630 | 'redirects' : true // automatically resolve redirects |
— | — | @@ -2483,9 +2483,11 @@ |
2484 | 2484 | // If using a gadget do the new embed format: |
2485 | 2485 | // @@NOTE this should be factored out into mediaWiki gadget helper |
2486 | 2486 | if( typeof wgServer != 'undefined' && typeof mwCheckForGadget != 'undefined' ){ |
2487 | | - var iframeUrl = wgServer + wgArticlePath.replace( /\$1/, wgPageName ) + |
2488 | | - '?' + mw.getConfig( 'Mw.AppendWithJS' ) + |
2489 | | - '&embedplayer=yes'; |
| 2487 | + var iframeUrl = wgServer + |
| 2488 | + wgArticlePath.replace( /\$1/, 'File:' + |
| 2489 | + unescape( this.apiTitleKey ).replace( /^(File:|Image:)/ , '' ) ) + |
| 2490 | + '?' + mw.getConfig( 'Mw.AppendWithJS' ) + |
| 2491 | + '&embedplayer=yes'; |
2490 | 2492 | } else { |
2491 | 2493 | // old style embed: |
2492 | 2494 | var iframeUrl = mw.getMwEmbedPath() + 'mwEmbedFrame.php?'; |