https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112253
Revision: 112253
Author: brion
Date: 2012-02-23 22:26:50 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
* (bug 34652) Fix regression in UploadWizard custom language list
Fixes regression in r107641 which removed the server portion of the URL from
what's passed into mediawiki.loader.load, causing the relative URL not to be
recognized as an absolute includable URL
Modified Paths:
--------------
trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
Modified: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
===================================================================
--- trunk/extensions/UploadWizard/resources/mw.UploadWizard.js 2012-02-23
22:26:38 UTC (rev 112252)
+++ trunk/extensions/UploadWizard/resources/mw.UploadWizard.js 2012-02-23
22:26:50 UTC (rev 112253)
@@ -51,7 +51,7 @@
// load list of languages so we'll have it ready when
description interfaces are created
// XXX replace this code once any of the following bugs are
fixed: 25845, 27535, 27561
- var languageHandlerUrl = mw.util.wikiScript() + '?' + $.param(
{ 'title': 'MediaWiki:LanguageHandler.js', 'action': 'raw', 'ctype':
'text/javascript' } );
+ var languageHandlerUrl = mw.config.get( 'wgServer' ) +
mw.util.wikiScript() + '?' + $.param( { 'title':
'MediaWiki:LanguageHandler.js', 'action': 'raw', 'ctype': 'text/javascript' } );
mw.loader.load( languageHandlerUrl );
// remove first spinner
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs