http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97608
Revision: 97608
Author: catrope
Date: 2011-09-20 09:16:25 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
For backwards compatibility with cached HTML generated by MediaWiki 1.17,
re-introduce mw.loader.go() . This would have normally been a no-op, but
because there is another inconsistency between 1.17 and 1.18 (loading of
mw.user) I decided it to abuse it to cover that too. Thanks for Derk-Jan
Hartman for reporting the JS errors on test2wiki and figuring out that they
were caused by incompatibilities in Squid-cached HTML.
Modified Paths:
--------------
trunk/phase3/resources/mediawiki/mediawiki.js
Modified: trunk/phase3/resources/mediawiki/mediawiki.js
===================================================================
--- trunk/phase3/resources/mediawiki/mediawiki.js 2011-09-20 09:13:41 UTC
(rev 97607)
+++ trunk/phase3/resources/mediawiki/mediawiki.js 2011-09-20 09:16:25 UTC
(rev 97608)
@@ -1175,6 +1175,11 @@
} );
return names;
};
+
+ /**
+ * For backwards-compatibility with Squid-cached pages. Loads
mw.user
+ */
+ this.go = function() { mw.loader.load( 'mediawiki.user' ); };
/* Cache document ready status */
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs