| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |
|
| 25 |
foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) { |
| 26 |
$$defaultSettingsVar = $defaultSettingsValue; |
| 27 |
} |
| 28 |
|
| 29 |
unset( $defaultSettingsVar ); |
| 30 |
unset( $defaultSettingsValue ); |