Podręcznik:$wgLegacyJavaScriptGlobals
Jump to navigation
Jump to search
![]() | Ta przestarzała funkcja nie powinna być już dłużej używana, ale jest nadal dostępna ze względu na wsteczną kompatybilność. Ta funkcja została zdeprecjonowana w wersji 1.35.0. |
Frontend: $wgLegacyJavaScriptGlobals | |
---|---|
Whether or not to assign configuration variables to the global window object. |
|
Wprowadzono w wersji: | 1.18.0 (r87856) |
Przestarzałe w wersji: | 1.35.0 (git #0b23e103) |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (boolean) |
Domyślna wartość: | false (1.35+)true (1.18-1.34) |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
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 ) ...
lub:
if ( wgIsArticle ) ...
will no longer work and needs to use mw.config instead. For example:
if ( mw.config.exists('wgRestrictionEdit') )
lub:
if ( mw.config.get('wgIsArticle') )
Categories:
- MediaWiki configuration settings/pl
- MediaWiki configuration settings 1.18.0/pl
- MediaWiki configuration settings introduced in version 1.18.0/pl
- MediaWiki configuration settings deprecated in version 1.35.0/pl
- MediaWiki configuration settings still in use/pl
- MediaWiki deprecated or obsolete features/pl
- Frontend variables/pl
- JavaScript/pl