HomePhabricator

Creating a way to toggle mw.config LEGACY_GLOBALS from LocalSettings (bug…
49ce5de7d94bUnpublished

Authored by Krinkle.

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Creating a way to toggle mw.config LEGACY_GLOBALS from LocalSettings (bug 28916). * I thought a while for a way to somehow get that global variable from php to the start of the main mediaWiki object creation. Considered using a (temporary) global variable and deleting afterwards, but that looked like a hack and wasn't sure about the cross-browser functioning of it. Instead ended up by moving it to the startUp module where other global variables are accessed as well. This seems to work pretty good.

  • Can be toggled from LocalSettings by setting $wgLegacyJavaScriptGlobals.
  • Changed some usages of mediaWiki to use the global mw alias instead.

Details

Committed
KrinkleMay 10 2011, 11:17 PM
Parents
rMWbafa1bfdb128: Turn forUpdate() into an actual no-op
Branches
Unknown
Tags
Unknown
ChangeId
None