MediaWiki master
DefaultSettings.php
Go to the documentation of this file.
1<?php
15
16if ( function_exists( 'wfDeprecatedMsg' ) ) {
18 'DefaultSettings.php is deprecated and will be removed. '
19 . 'Use MainConfigSchema::listDefaultValues() or MainConfigSchema::getDefaultValue() instead.',
20 '1.39'
21 );
22}
23
24// Extract the defaults into the current scope
25foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) {
26 $$defaultSettingsVar = $defaultSettingsValue;
27}
28
29unset( $defaultSettingsVar );
30unset( $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.