Manual:$wgLegacyJavaScriptGlobals/es
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.37.0</tvar>.</translate> |
<translate> ResourceLoader</translate>: $wgLegacyJavaScriptGlobals | |
---|---|
Whether or not to assign configuration variables to the global window object. |
|
<translate> Introduced in version:</translate> | 1.18.0 (r87856) |
<translate> Deprecated in version:</translate> | 1.35.0 (Gerrit change 618030; git #0b23e103) |
<translate> Removed in version:</translate> | 1.37.0 (Gerrit change 678716; git #99d4ad59) |
<translate> Allowed values:</translate> | (booleano) |
<translate> Default value:</translate> | false (1.35-1.36)true (1.18-1.34) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Detalles
Whether or not to assign configuration variables to the global window object.
If this is set to false, old code using deprecated variables like:
if ( window.wgRestrictionEdit ) ...
o:
if ( wgIsArticle ) ...
will no longer work and needs to use mw.config instead. For example:
if ( mw.config.exists('wgRestrictionEdit') )
o:
if ( mw.config.get('wgIsArticle') )
Categories:
- MediaWiki configuration settings/es
- MediaWiki configuration settings introduced in version 1.18.0/es
- MediaWiki configuration settings deprecated in version 1.35.0/es
- MediaWiki configuration settings removed in version 1.37.0/es
- Pages with broken file links
- MediaWiki deprecated or obsolete features/es
- Resource loader variables/es
- JavaScript/es