Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 10 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * THIS IS A DEPRECATED STUB FILE! |
| 4 | * |
| 5 | * Default settings are now defined in the MainConfigSchema class. |
| 6 | * |
| 7 | * To get default values for configuration variables, use MainConfigSchema::listDefaultValues() |
| 8 | * or MainConfigSchema::getDefaultValue(). |
| 9 | * |
| 10 | * @file |
| 11 | * @deprecated since 1.39 |
| 12 | */ |
| 13 | |
| 14 | use MediaWiki\MainConfigSchema; |
| 15 | |
| 16 | if ( function_exists( 'wfDeprecatedMsg' ) ) { |
| 17 | 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 |
| 25 | foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) { |
| 26 | $$defaultSettingsVar = $defaultSettingsValue; |
| 27 | } |
| 28 | |
| 29 | unset( $defaultSettingsVar ); |
| 30 | unset( $defaultSettingsValue ); |