2008-06-05 20:12:31 +00:00
|
|
|
<?php
|
2004-09-02 23:28:24 +00:00
|
|
|
/**
|
2022-02-21 16:28:35 +00:00
|
|
|
* THIS IS A DEPRECATED STUB FILE!
|
2012-05-20 15:56:43 +00:00
|
|
|
*
|
2022-02-21 16:28:35 +00:00
|
|
|
* Default settings are now defined in the MainConfigSchema class.
|
2004-09-03 23:00:01 +00:00
|
|
|
*
|
2023-03-02 11:39:43 +00:00
|
|
|
* To get default values for configuration variables, use MainConfigSchema::listDefaultValues()
|
|
|
|
|
* or MainConfigSchema::getDefaultValue().
|
2012-05-20 15:56:43 +00:00
|
|
|
*
|
|
|
|
|
* @file
|
2022-02-21 16:28:35 +00:00
|
|
|
* @deprecated since 1.39
|
2004-09-03 01:05:32 +00:00
|
|
|
*/
|
|
|
|
|
|
2022-02-21 16:28:35 +00:00
|
|
|
use MediaWiki\MainConfigSchema;
|
2022-03-16 17:35:20 +00:00
|
|
|
|
2022-02-21 16:28:35 +00:00
|
|
|
if ( function_exists( 'wfDeprecatedMsg' ) ) {
|
|
|
|
|
wfDeprecatedMsg(
|
|
|
|
|
'DefaultSettings.php is deprecated and will be removed. '
|
2023-03-02 11:39:43 +00:00
|
|
|
. 'Use MainConfigSchema::listDefaultValues() or MainConfigSchema::getDefaultValue() instead.',
|
2022-02-21 16:28:35 +00:00
|
|
|
'1.39'
|
|
|
|
|
);
|
2005-05-14 09:24:21 +00:00
|
|
|
}
|
2004-08-12 06:54:58 +00:00
|
|
|
|
2022-02-21 16:28:35 +00:00
|
|
|
// Extract the defaults into the current scope
|
|
|
|
|
foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) {
|
|
|
|
|
$$defaultSettingsVar = $defaultSettingsValue;
|
|
|
|
|
}
|
2003-08-07 18:31:42 +00:00
|
|
|
|
2022-02-21 16:28:35 +00:00
|
|
|
unset( $defaultSettingsVar );
|
|
|
|
|
unset( $defaultSettingsValue );
|