- Refer Bug 33658
- Merging the jsgrammar branch of svn.
Change-Id: Iacdf02122f396ac90678241775eb8e079ff6369a
};
var parserDefaults = {
- 'magic' : {},
+ 'magic' : {
+ 'SITENAME' : mw.config.get( 'wgSiteName' )
+ },
'messages' : mw.messages,
'language' : mw.language
};
};
- // TODO figure out a way to make magic work with common globals like wgSiteName, without requiring init from library users...
- // var options = { magic: { 'SITENAME' : mw.config.get( 'wgSiteName' ) } };
-
// deprecated! don't rely on gM existing.
// the window.gM ought not to be required - or if required, not required here. But moving it to extensions breaks it (?!)
// Need to fix plugin so it could do attributes as well, then will be okay to remove this.