MediaWiki  master
DefaultSettings.php
Go to the documentation of this file.
1 <?php
14 
15 if ( 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
24 foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) {
25  $$defaultSettingsVar = $defaultSettingsValue;
26 }
27 
28 unset( $defaultSettingsVar );
29 unset( $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.