unset( $rcMaxAgeDays );
if ( $wgSkipSkin ) {
+ // Hard deprecated in 1.34.
+ wfDeprecated( '$wgSkipSkin – use $wgSkipSkins instead', '1.23' );
$wgSkipSkins[] = $wgSkipSkin;
}
$wgSkipSkins[] = 'apioutput';
if ( $wgLocalInterwiki ) {
+ // Hard deprecated in 1.34.
+ wfDeprecated( '$wgLocalInterwiki – use $wgLocalInterwikis instead', '1.23' );
array_unshift( $wgLocalInterwikis, $wgLocalInterwiki );
}
* Definitions of the NS_ constants are in Defines.php
* @private
*/
-$wgCanonicalNamespaceNames = [
- NS_MEDIA => 'Media',
- NS_SPECIAL => 'Special',
- NS_TALK => 'Talk',
- NS_USER => 'User',
- NS_USER_TALK => 'User_talk',
- NS_PROJECT => 'Project',
- NS_PROJECT_TALK => 'Project_talk',
- NS_FILE => 'File',
- NS_FILE_TALK => 'File_talk',
- NS_MEDIAWIKI => 'MediaWiki',
- NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
- NS_TEMPLATE => 'Template',
- NS_TEMPLATE_TALK => 'Template_talk',
- NS_HELP => 'Help',
- NS_HELP_TALK => 'Help_talk',
- NS_CATEGORY => 'Category',
- NS_CATEGORY_TALK => 'Category_talk',
-];
+$wgCanonicalNamespaceNames = NamespaceInfo::$canonicalNames;
/// @todo UGLY UGLY
if ( is_array( $wgExtraNamespaces ) ) {
$wgDebugToolbar = false;
}
-// We always output HTML5 since 1.22, overriding these is no longer supported
-// we set them here for extensions that depend on its value.
-$wgHtml5 = true;
-$wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
-$wgJsMimeType = 'text/javascript';
-
// Blacklisted file extensions shouldn't appear on the "allowed" list
$wgFileExtensions = array_values( array_diff( $wgFileExtensions, $wgFileBlacklist ) );
}
if ( $wgProfileOnly ) {
+ // Hard deprecated in 1.34.
+ wfDeprecated(
+ '$wgProfileOnly set the log file in $wgDebugLogGroups[\'profileoutput\'] instead',
+ '1.23'
+ );
$wgDebugLogGroups['profileoutput'] = $wgDebugLogFile;
$wgDebugLogFile = '';
}
}
} else {
$debug = "\n\nStart request {$wgRequest->getMethod()} {$wgRequest->getRequestURL()}\n";
-
- if ( $wgDebugPrintHttpHeaders ) {
- $debug .= "HTTP HEADERS:\n";
-
- foreach ( $wgRequest->getAllHeaders() as $name => $value ) {
- $debug .= "$name: $value\n";
- }
+ $debug .= "HTTP HEADERS:\n";
+ foreach ( $wgRequest->getAllHeaders() as $name => $value ) {
+ $debug .= "$name: $value\n";
}
wfDebug( $debug );
}