Manual:$wgLegacyJavaScriptGlobals

Details
Whether or not to assign configuration variables to the global window object.

If this is set to false, old code using deprecated variables like:

or:

will no longer work and needs to use mw.config instead. For example:

or: