Handbuch:$wgLegacyJavaScriptGlobals

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgLegacyJavaScriptGlobals and the translation is 11% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎中文
Frontend: $wgLegacyJavaScriptGlobals
Whether or not to assign configuration variables to the global window object.
Eingeführt in Version: 1.18.0 (r87856)
Entfernt in Version: weiterhin vorhanden
Erlaubte Werte: boolean
Standardwert: true

Andere Einstellungen: Alphabetisch | Nach Funktion

Details[edit]

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 ) ...

or:

if ( wgIsArticle ) ...

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

if ( mw.config.exists('wgRestrictionEdit') )

or:

if ( mw.config.get('wgIsArticle') )