MediaWiki REL1_39
DefaultSettings.php
Go to the documentation of this file.
1<?php
14
15if ( function_exists( 'wfDeprecatedMsg' ) ) {
17 'DefaultSettings.php is deprecated and will be removed. '
18 . 'Use the ConfigSchema service object instead.',
19 '1.39'
20 );
21}
22
23// Extract the defaults into the current scope
24foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) {
25 $$defaultSettingsVar = $defaultSettingsValue;
26}
27
28unset( $defaultSettingsVar );
29unset( $defaultSettingsValue );
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.
This class contains schema declarations for all configuration variables known to MediaWiki core.