From a0fc052e68a464e64813ae704f02aefda9b42a33 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 20 Sep 2011 09:16:25 +0000 Subject: [PATCH] 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. --- resources/mediawiki/mediawiki.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 7da282173d..5770fc8735 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -1175,6 +1175,11 @@ window.mw = window.mediaWiki = new ( function( $ ) { } ); return names; }; + + /** + * For backwards-compatibility with Squid-cached pages. Loads mw.user + */ + this.go = function() { mw.loader.load( 'mediawiki.user' ); }; /* Cache document ready status */ -- 2.20.1